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>
相关文章