Hi all
Does anone have any idea as to why this isn't working in Netscape? It
should only Execute once the user inputs something in the first textbox
(works fine in IE) but in Netscape it goes and posts regardless:
<%@Page Language="VB" debug="True"%>
<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script runat="server">
Sub Test(objSender As Object, objArgs As EventArgs)
message.InnerHtml = "* Form was posted."
End Sub
</script>
<body>
<form runat="server">
Username: <input name="user" type="text" id="user" runat="server" /><br />
<asp:RequiredFieldValidator id="valRequired1" runat="server"
ControlToValidate="user"
ErrorMessage="* You must enter a value in the first text box"
Display="dynamic">
</asp:RequiredFieldValidator><br />
Password: <input name="Pwd" id="Pwd" type="password" /><br />
<input type="Submit" value="Submit" runat="server" onserverclick="Test" />
</form>
<br />
<div id="message" runat="server"></div>
</body>
</html>