ASP.NET(vb.net) & HTMLImage - HTMLImage : Creates a server-side control that maps to the <img> HTML element and allows you to display an image
ShotDev Focus:
- ASP.NET(vb.net) & HTMLImage
Tag Control :
<img id="programmaticID" alt="alttext" align= top | middle | bottom | left | right border="borderwidth" height="imageheight" src="imageURL" width="imagewidth" runat="server" >
Example
HTMLImage.aspx
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Me.image1.Src="images/mygirl.jpg" Me.image1.Alt="My Girl" Me.image1.Border="1" Me.image1.Width="200" Me.image1.Attributes.Add("OnClick","JavaScript:MyGirl();") End Sub </script> <script language="JavaScript"> function MyGirl() { alert('I Love My Girl'); } </script> <html> <head> <title>ShotDev.Com Tutorial</title> </head> <body id="body1" runat="server"> <form id="form1" runat="server"> <img id="image1" runat="server"> </form> </body> </html>
Screenshot