Export (0) Print
Expand All

HyperLinkControlBuilder Class

Interacts with the parser to build a HyperLink control.

For a list of all members of this type, see HyperLinkControlBuilder Members.

System.Object
   System.Web.UI.ControlBuilder
      System.Web.UI.WebControls.HyperLinkControlBuilder

[Visual Basic]
Public Class HyperLinkControlBuilder
   Inherits ControlBuilder
[C#]
public class HyperLinkControlBuilder : ControlBuilder
[C++]
public __gc class HyperLinkControlBuilder : public ControlBuilder
[JScript]
public class HyperLinkControlBuilder extends ControlBuilder

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

Notes to Inheritors:  To create a custom control builder for a HyperLink derived control, you need to inherit from this class.

Example

[Visual Basic] 
<%@ Page Language="VB" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

    <h3>HyperLink Sample</h3>

    Click on the HyperLink:<br>  

    <asp:HyperLink id="hyperlink1" 
                   NavigateUrl="http://www.microsoft.com"
                   Text="Microsoft Official Site"
                   Target="_new"
                   runat="server"/>       

</body>
</html>


[C#] 
<%@ Page Language="C#" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

    <h3>HyperLink Sample</h3>

    Click on the HyperLink:<br>  

    <asp:HyperLink id="hyperlink1" 
                   NavigateUrl="http://www.microsoft.com"
                   Text="Microsoft Official Site"
                   Target="_new"
                   runat="server"/>       

</body>
</html>


[JScript] 
<%@ Page Language="JScript" AutoEventWireup="True" %>
<html>
<head>

</head>
<body>

    <h3>HyperLink Sample</h3>

    Click on the HyperLink:<br>  

    <asp:HyperLink id="hyperlink1" 
                   NavigateUrl="http://www.microsoft.com"
                   Text="Microsoft Official Site"
                   Target="_new"
                   runat="server"/>       

</body>
</html>

[C++] No example is available for C++. To view a Visual Basic, C#, or JScript example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Namespace: System.Web.UI.WebControls

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

Assembly: System.Web (in System.Web.dll)

See Also

HyperLinkControlBuilder Members | System.Web.UI.WebControls Namespace | ControlBuilder

Show:
© 2015 Microsoft