Asp.net Image control

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.


ImageUrlUrl of image location.
AlternetTextAppears if image not loaded properly or if image is missing in the specified location.
TooltipText message Appearing on mouse over the image
ImageAlignUsed to align the Text beside image.



If image is not loaded, AlternetText appears instead of the image
Image result for imgag

// 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.
                    

                    

Share on Google Plus

About It E Research

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment