Click here to Skip to main content
16,020,345 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
On my form i have RequiredFieldValidator on textbox and i have asp:fileipload control.

when is submit the form without filling the textbox the RequiredFieldValidator appear and asp:fileupload disabled.

how to prevent the disabling the asp:fileupload.


thank you.
Posted
Comments
Nigam Patel 23-Dec-11 1:14am    
can you please past your aspx page code?

1 solution

Looks like you have not defined the validation group. Specify a validation group.

For example:
In your RequiredFieldValidator set ValidationGroup="NotUpload"
In your textbox, submit button, etc specify the ValidationGroup to be "NotUpload".

Details: Specifying Validation Groups[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900