There are many controls in. net. What we will talk about today is not an example tutorial on the image control and imageButton control.
There are many controls in. net. What we will talk about today is not an example tutorial on the image control and imageButton control.
Image Control instance.
<Html>
<Body>
<Form runat = "server">
<Asp: Image
Runat = "server"
AlternateText = www.111cn.cn
ImageUrl = "http://www.111cn.cn/banner/banner.gif"/>
</Form>
</Body>
</Html>
Image button control instance tutorial.
<Script runat = "server">
Sub getCoordinates (sender As Object, e As ImageClickEventArgs)
Mess. Text = "Coordinates:" & e. x & "," & e. y
End Sub
</Script>
<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>