Go to DotNetFunda.com
<<= Please see left side tutorials menu.


Silverlight Tutorials | Report a Bug in the Tutorial

Found interesting? Add this to:

| More

asp:Hyperlink control
Hyperlink control is used to jump to another location or to execute the script code.
 
Hyperlink control is used to jump to another location or to execute the script code. When rendered on the page, it implements an anchor <a/> tag.

Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <a/> tag. You can set its Text either by setting Text property in the .aspx page or from server side page. (other properties can also be set from both pages)

Following are some important properties that are useful.
NavigateUrl Used to specify the location to jump to.
ImageUrl Used to place an image instead of text as Hyperlink.
DEMO : Hyperlink Show Source Code
Location wtih link as Text Go to Button Control tutorial Location with link as Image
  Location with Confirmation box Go to Button Control tutorial
                    // location with link as Text
                    <asp:HyperLink ID="HyperLink1" runat="Server" Text="Go to Button Control tutorial" NavigateUrl="~/tutorials/controls/button.aspx" />
                    
                    // location with link as Image
                    <asp:HyperLink ID="HyperLink2" runat="Server" NavigateUrl="~/tutorials/controls/imagebutton.aspx" ImageUrl="~/images/demobutton.gif" ToolTip="Go to ImageButton control tutorial" />
                    
                    // Location wth Confirmation box
                    <span onclick="return confirm('Are you sure to proceed?')">
                        <asp:HyperLink ID="HyperLink2" runat="Server" Text="Go to Button Control tutorial" NavigateUrl="~/tutorials/controls/button.aspx" />
                    </span>
                




About Us | The Team | Advertise | Contact Us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you found 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. | 9/7/2010 1:12:54 AM