Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am saving the path of the file using fileupload control.
After PostBack,the path disappears as due to the property of fileupload control. But the regular expression validator that is associated with the fileupload control displays the error on PageLOad after postback.

Can anyone help me .

Thank you very much in Advance,

=====================================================
Kishor Kadam

======================================================
Posted
Comments
Arindam Tewary 2-Nov-10 5:06am    
Post some code block here about how you are using the regular expression.

1 solution

You would need to check the FileUpload.PostedFile.FileName to retrieve the original path and filename. Maybe a validator on this field just cannot do what you want. Maybe just validate server side yourself and not use a validator directly.

Good luck!
 
Share this answer
 
v2

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