asp.net.ph

LinkButton Constructor

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 ( );

Remarks

Use this constructor to initialize a new instance of the LinkButton control.

Example

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 );
}
  C# VB

 Show me 

See Also

LinkButton Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph