What you want to see on DotNetFunda.com ?
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 11874 |  Welcome, Guest!   Register  Login
Home > Tutorials > ASP.NET Tutorials > Image

Silverlight Tutorials | Report a Bug in the Tutorial
Found interesting? Add this to:


asp:Image control
Image control is used to place an image on the page.
 
Ideally Image control is used to place an image on the page. When it is rendered on the page, it is implemented through <img /> HTML tag.

Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <img>.

Following are some important properties 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.
DEMO : Label Show Source Code
If image is not loaded, AlternetText appears instead of the image
DotNetFunda Logo
If image loaded, on mouse over tooltip appears
DotNetFunda Logo This is DotNet Funda logo.
 
                        
            // 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.
                    
                    





About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 11:49:42 AM