<html>
<head>
<title>Submit and Reset HtmlInputButtons</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void submitHandler ( object src, EventArgs e ) {
if ( Password.Value == "ASP.NET" ) msg.InnerHtml = "Password is correct";
else msg.InnerHtml = "That password is not correct";
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2>Submit and Reset <span class="hilite">HtmlInputButtons</span></h2></div>
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<p>Hint: ASP.NET</p>
<table cellpadding=10 bgcolor="bbccdd" width=200>
<tr>
<td align="right"><b>Login</b>:</td>
<td><input id="Name" runat="server"></td></tr>
<tr>
<td align="right"><b>Password</b>:</td>
<td><input id="Password" type=password runat="server"></td></tr>
<tr>
<td colspan=2 align="center">
<input type=submit value="Enter" runat="server"
onServerClick="submitHandler">
<input type="reset" runat="server"></td></tr>
</table>
<p id="msg" runat="server" />
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>