ASP.NET HTML 控件 ImageButton
asp.net html 控件 imagebutton
<script runat="server">
sub getcoordinates(sender as object, e as imageclickeventargs)
mess.text="coordinates: " & e.x & ", " & e.y
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<p>click on the image:</p>
<asp:imagebutton
runat="server"
imageurl="smiley.gif"
onclick="getcoordinates"/>
<p><asp:label id="mess" runat="server"/></p>
</form>
</body>
</html>
sub getcoordinates(sender as object, e as imageclickeventargs)
mess.text="coordinates: " & e.x & ", " & e.y
end sub
</script>
<!doctype html>
<html>
<body>
<form runat="server">
<p>click on the image:</p>
<asp:imagebutton
runat="server"
imageurl="smiley.gif"
onclick="getcoordinates"/>
<p><asp:label id="mess" runat="server"/></p>
</form>
</body>
</html>
相关文章
- ASP.NET Web Pages 教程
- ASP.NET Web Pages WebGrid
- ASP.NET Web 的 C# 和 VB 实例
- ASP.NET Web Pages WebMail 参考手册
- ASP.NET Razor C# 变量
- ASP.NET MVC 页面和布局
- ASP.NET MVC – 发布
- ASP.NET ArrayList
- ASP.NET CheckBoxList 控件
- ASP.NET Label 控件
- ASP.NET RadioButton 控件
- ASP.NET Style 控件
- ASP.NET Table 控件
- WebSecurity CreateAccount 方法
- WebSecurity Login 方法
- WebSecurity RequireRoles 方法
- WebSecurity RequireUser 方法
- HTML Image 2
- HTML Textarea
- ASP.NET HTML 控件 Button 2