FireFox is not Going to Validate any type of Field Validator

  • Thread starter Malik Asif Joyia
  • Start date
M

Malik Asif Joyia

Hello
i have made the asp.net web forms and i have used different type of
Validators in webforms.
but when i run my form from Mozilla Firefox any type of validator desont
work and page is submitted without validations.
kindly tell me solution to remove this problem .
thanks
ASIF
 
A

AndrewF

ASIF,

If you can't use ASP.NET 2.0 then use server side validation instead. I
don't have the code to hand but essentially you can switch off client
side validation [useful for things like FireFox, Mobile Phones, PDAs
etc which aren't what MS call "upBrowsers" or something].

I think there is a property called EnableClientValidation and you can
set this to false - you could set this optionally based on the user
agent you have which is what ASP.NET should do but firefox sometimes
misreports it agent headers to trick servers into thinking it is IE5+

If you set that then it will do a postback and your validation summary
will be shown

Cheers
AndrewF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top