How to use LinkButton Control in asp.net

The LinkButton Control is the same as HyperLink Control But LinkButton has the same functionality as Button control.

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

(Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->Select Web Form->click Add)

2.Click ToolBox-> Double Click on LinkButton(or drag and drop LinkButton on Design view)->Right click on LinkButton->Select Properties->change LinkButton Text Property to "aspdotnet-park Blog"

 Change the PostBackUrl  properties to your desired url name/link(here i write http://aspdotnet-park.blogspot.com/)
asp.net LinkButton Control


















3.Click F5 to run your project->ok
LinkButton control in asp.net

No comments:

Post a Comment