<html>
<head>
<title>HtmlInputHidden Control Example</title>
<link rel="stylesheet" href="/shared/netdemos.css">
<script language="C#" runat="server">
void saySomething ( object src, ImageClickEventArgs e ) {
switch ( ( ( HtmlInputImage ) src ) .ID ) {
case "InputImage1" :
msg.InnerHtml = "You’re probably a down-to-earth person.";
break;
case "InputImage2" :
msg.InnerHtml = "Seems like you’d rather be in fiery Venus.";
break;
case "InputImage3" :
msg.InnerHtml = "Maybe you’re the type who’d prefer cooler Neptune.";
break;
}
}
</script>
</head>
<body>
<!-- #include virtual="~/shared/top.inc -->
<div class="header"><h2><span class="hilite">HtmlInputHidden Control</span> Example</h2></div>
<hr size=1 width=92%>
<div align="center">
<form runat="server">
<input type=image id="InputImage1" src="/shared/images/earth.gif" style="border:thick white ridge"
onMouseOver="this.style.border='thick green groove';"
onMouseOut="this.style.border='thick white ridge';"
onServerClick="saySomething" runat="server">
<input type=image id="InputImage2" src="/shared/images/venus.gif" style="border:thick white ridge"
onMouseOver="this.style.border='thick green groove';"
onMouseOut="this.style.border='thick white ridge';"
onServerClick="saySomething" runat="server">
<input type=image id="InputImage3" src="/shared/images/neptune.gif" style="border:thick white ridge"
onMouseOver="this.style.border='thick green groove';"
onMouseOut="this.style.border='thick white ridge';"
onServerClick="saySomething" runat="server">
<p id="msg" runat="server">Where do you want to go today?</p>
</form>
</div>
<hr size=1 width=92%>
<!-- #include virtual="~/shared/viewsrc.inc" -->
</body>
</html>