Hi. I've posted this question on another newsgroup, but I haven't received any answers..
I have a login page where users input userID and password and click a Login button. Before calling the login functions, I have to check the user ID and the password for invalid data. It works well in IExplorer, but it doesn't show the validation summary (displayed in a Javascript alert box) in Netscape.
This is what I have in the asp page:
<asp:textbox id="txtUserID" MaxLength="30" runat="server"></asp:textbox><asp:requiredfieldvalidator id="validUserID" runat="server" controlToValidate="txtUserID" ErrorMessage="User ID is required" Display="None"></asp:requiredfieldvalidator><asp:textbox id="txtUserPwd" MaxLength="30" runat="server"></asp:textbox><asp:requiredfieldvalidator id="validUserPwd" runat="server" ErrorMessage="Password is required" Display="None" ControlToValidate="txtUserPwd"></asp:requiredfieldvalidator><asp:button id="btnLogin" runat="server" Text="Login"></asp:button><asp:validationsummary id="validSummary" runat="server" DisplayMode="BulletList" HeaderText="The following errors ocured:" showsummary="false" ShowMessageBox="True"></asp:validationsummary>
This is what I have in my code-behind file:
Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
If Not Page.IsValid Then
Return
End If
'Call the login function
End Sub
Does anyone have any idea why the validation summary doesn't show in netscape
TI
TM