asp:Image control
Image control is used to place an image on the page
Ideally the image control is used to keep an image on the page. When it is provided on the page, it is implemented through the <img /> HTML tag.
Its properties like backcroll, foreclosure, border collar, border style, borderwidth, height etc.
The following are some of the important qualities that are very useful.
// If image is not loaded, AlternetText appears instead of the image
<asp:Image ID="Image2" runat="Server" ImageUrl="~/images/DotNetFunda.gif" AlternateText="DotNetFunda Logo"
ImageAlign="textTop" ToolTip="Go to DotNetFunda Home page" />
<hr style="size:1px;" />
// If image loaded, on mouse over tooltip appears
<asp:Image ID="Image3" runat="Server" ImageUrl="~/images/DotNetLogo.gif" AlternateText="DotNetFunda Logo"
ImageAlign="Middle" ToolTip="DotNetFunda Logo tooltip." /> This is DotNet Funda logo.
Image control is used to place an image on the page
Ideally the image control is used to keep an image on the page. When it is provided on the page, it is implemented through the <img /> HTML tag.
Its properties like backcroll, foreclosure, border collar, border style, borderwidth, height etc.
The following are some of the important qualities that are very useful.
ImageUrl | Url of image location. |
AlternetText | Appears if image not loaded properly or if image is missing in the specified location. |
Tooltip | Text message Appearing on mouse over the image |
ImageAlign | Used to align the Text beside image. |
If image is not loaded, AlternetText appears instead of the image |
// If image is not loaded, AlternetText appears instead of the image
<asp:Image ID="Image2" runat="Server" ImageUrl="~/images/DotNetFunda.gif" AlternateText="DotNetFunda Logo"
ImageAlign="textTop" ToolTip="Go to DotNetFunda Home page" />
<hr style="size:1px;" />
// If image loaded, on mouse over tooltip appears
<asp:Image ID="Image3" runat="Server" ImageUrl="~/images/DotNetLogo.gif" AlternateText="DotNetFunda Logo"
ImageAlign="Middle" ToolTip="DotNetFunda Logo tooltip." /> This is DotNet Funda logo.
0 comments:
Post a Comment