System.Web.UI.WebControls Namespace LinkButton Class
Initializes a new instance of the LinkButton class.
[ VB ]
Public Sub New ( )
[ C# ]
public LinkButton ( );
[ C++ ]
public: LinkButton ( );
[ JScript ]
public function LinkButton ( );
Use this constructor to initialize a new instance of the LinkButton control.
The following shows how to dynamically initialize a new instance of a LinkButton control at run time.
void makeLinkButton ( Object src, EventArgs e ) {
LinkButton myLinkButton = new LinkButton ( );
myLinkButton.Text = "Click me";
placeHolder.Controls.Add ( myLinkButton );
}
Sub makeLinkButton ( src As Object, e As EventArgs )
Dim myLinkButton As New LinkButton ( )
myLinkButton.Text = "Click me"
placeHolder.Controls.Add ( myLinkButton )
End Sub |
|
C# |
VB |
Show me
LinkButton Members