Hi,
I am working in asp.net 4.5 and below are the controls in my page
Name: Textbox1
NameFile: Fileupload1
Category: Textbox2
CategoryFile: Fileupload2
Submit Button
Validation logic:
1. Either Name or NameFile should have value. Which means eiter one is mandatory.
2. All the file updalod controls isze has to be validaetd and it cannot be exceeded 1MB
3. All the fileuplaod extensiton has to be validated. Allowed Extention format: .jpg|.png|.bmp|.jpeg|.gif|.tif
Al these can be accomplished by client side. is this possible to do. I can chose validation controls to do this. but my fist contdition will not be done using validation control.
how to achive this, any code sample please