Click here to Skip to main content
15,891,895 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<%-- <asp:RegularExpressionValidator ID="refImage" runat="server"
           ControlToValidate="FileUpload1" Display="Dynamic"
           ErrorMessage="Upload jpg Image only" SetFocusOnError="True"

           ValidationExpression="^(([a-zA-Z]:)|(\\{2}\w+)\$?)(\\(\w[\w].*))(.jpg|.JPG)$"
           ValidationGroup="1" CssClass="rfv"></asp:RegularExpressionValidator>--%>




working perfectly on chrome and explorer



plz help
Posted
Comments
Ajith K Gatty 23-Apr-14 6:24am    
Did you get proper output in IE,Chrome??
neeraj_ 24-Apr-14 1:45am    
yes sir
Sanket Saxena 24-Apr-14 7:10am    
Check the console in firebug and let us know what is the error you are getting

Hi Neeraj,

If you are not getting result as expected only in FireFox then add Extension Firebug. It will help you to inspect in a good and easy manner.

Good Luck
 
Share this answer
 
Comments
neeraj_ 24-Apr-14 1:46am    
firebug extension for what
Ajith K Gatty 24-Apr-14 2:27am    
You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page
neeraj_ 24-Apr-14 2:37am    
sir please tell me in detail
i'm a beginner
how i can use this regular expression in mozila
Ajith K Gatty 24-Apr-14 2:46am    
once you try with this RE. "([^\\s]+(\\.(?i)(jpg|JPG))$)"
neeraj_ 24-Apr-14 2:59am    
its not working sir
Try the below Regular Expression.
HTML
ValidationExpression="^.+\.(([jJ][pP][eE]?[gG]))$"
 
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