ASP.Net WebForms requiredfieldvalidator not working in FireFox?

Posted by larryq on Stack Overflow See other posts from Stack Overflow or by larryq
Published on 2010-04-27T16:42:31Z Indexed on 2010/04/27 16:43 UTC
Read the original article Hit count: 503

I have a WebForms app that uses a field validator on a dropdownlist. It works in IE but not FireFox.

This is pretty straightforward stuff I'm doing. Here are the setups for the dropdown and validator:

<asp:DropDownList ID ="dmbFileActNo" runat="server" CssClass="DROPDOWN_MEDIUM" AutoPostBack="True"></asp:DropDownList>

<asp:requiredfieldvalidator EnableClientScript="true" id="rfvFileActNo" Display="None" ControlToValidate="dmbFileActNo" Runat="server"  InitialValue="-1"></asp:requiredfieldvalidator>

I'm running ASP.Net 2.0 on the web server. Javascript is enabled on the FireFox browser-- this problem happens on all FF browsers I've tested, on multiple everyday machines, so I don't believe it's due to a locked down install.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about input-validation