Web >> Development >> ASP.Net >> HTML Controls >>  How to use Image control

<script runat="server"> Sub Page_Load(Sender As Object,E As EventArgs) image1.Src="/images/smiley.gif" image1.Alt="Smiley" image1.Border="3" End Sub </script> <body> <form runat="server"> <img id="image1" runat="server" /> </form> </body> </html>