<asp:Image AccessKey="string" AlternateText="string" BackColor="color name|#dddddd" BorderColor="color name|#dddddd" BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge| Inset|Outset" BorderWidth="size" CssClass="string" DescriptionUrl="uri" Enabled="True|False" EnableTheming="True|False" EnableViewState="True|False" ForeColor="color name|#dddddd" GenerateEmptyAlternateText="True|False" Height="size" ID="string" ImageAlign="NotSet|Left|Right|Baseline|Top|Middle|Bottom| AbsBottom|AbsMiddle|TextTop" ImageUrl="uri" OnDataBinding="DataBinding event handler" OnDisposed="Disposed event handler" OnInit="Init event handler" OnLoad="Load event handler" OnPreRender="PreRender event handler" OnUnload="Unload event handler" runat="server" SkinID="string" Style="string" TabIndex="integer" ToolTip="string" Visible="True|False" Width="size" > </asp:Image>
<%@ Page Language="VB" %> <script runat="server"> Sub Page_Load(sender As Object,e As EventArgs) Me.Image1.ImageUrl = "images.gif" Me.Image1.Attributes.Add("OnClick", "alert('Hello www.ThaiCreate.Com')") Me.Image1.Style.Add("cursor", "hand") End Sub </script> <html> <head> </head> <body> <form runat="server"> <asp:Image id="Image1" runat="server"></asp:Image> </form> </body> </html>
ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท