Click here to Skip to main content
15,921,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi i have a custom validator. and i am giving an error message in it "Invalid File Type "
but it is being displayed below my file upload control.I want to display it above the control.
How can i do it??
Posted

1 solution

 
Share this answer
 
Comments
pree_kh 17-Dec-12 1:51am    
i dont want to display in alert or popup..i just want to display the error message in a label that shud be dispalyed above the control.
i have done this:
<asp:CustomValidator class="errmsg" ID="cvFileExtension" runat="server" ValidationGroup="grpImport"
Display="Dynamic" ErrorMessage="Invalid file type." ClientValidationFunction="CheckFileExtension" />
but with this im getting the message below the field
[no name] 17-Dec-12 1:53am    
place this validator above your file upload control..
pree_kh 17-Dec-12 3:05am    
thanks,wondering y it didn't came to my mind..
[no name] 17-Dec-12 3:07am    
If you're satisfied with the given answer, Accept the Solution :)
-Krunal R.

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