案例:ASP.NET案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<script  runat="server">
3
Sub getCoordinates(sender As Object, e As ImageClickEventArgs)
4
   mess.Text="坐标:" & e.x & ", " & e.y
5
End Sub
6
</script>
7
8
<html>
9
<body>
10
11
<form runat="server">
12
<p>请点击这幅图片:</p>
13
<asp:ImageButton
14
runat="server"
15
ImageUrl="/img/eg_buttonnext.gif"
16
OnClick="getCoordinates"/>
17
<p><asp:label id="mess" runat="server"/></p>
18
</form>
19
20
</body>
21
</html>
22