---
title: "LinkButton in ASP.Net"  
description: "The LinkButton control is used to create a hyperlink button.  The LinkButton control has the same appearance as a HyperLink control, but has the same"  
author: "Pushpendra Singh"  
published: 2010-10-12  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/160/linkbutton-in-asp-dot-net  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# LinkButton in ASP.Net

The LinkButton control is used to create a hyperlink button.\

The LinkButton control has the same appearance as a HyperLink control, but has the same functionality as a Button control.

```
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
```

![LinkButton Control in ASP.Net](https://www.mindstick.com/mindstickarticle/3fc2fb01-4c68-4654-a3c8-385b9a4d5973/images/75a968c7-0193-4fac-bdfe-77a8ffab018f.png)

**When user clicks on a Linkbutton then click event of Link Button will fire.**

You can provide an event handler for the Click event to programmatically control the actions performed when the button is clicked.

```
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />protected void LinkButton1_Click(object sender, EventArgs e)    {         Label1.Text = "Hello";    }
```

Here, when you click the linkButton then it will display message “Hello” in Label1

## ![LinkButton Control in ASP.Net](https://www.mindstick.com/mindstickarticle/3fc2fb01-4c68-4654-a3c8-385b9a4d5973/images/173b7d1a-a174-44a0-9a93-0671c5a6aefc.png)

## We can change the LinkButton appearance

```
<asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="True" Font-Italic="True" Font-Names="Arial" Font-Size="Larger" Font-Strikeout="False"Font-Underline="False" ForeColor="#FF6600">LinkButton</asp:LinkButton>
```

\

![LinkButton Control in ASP.Net](https://www.mindstick.com/mindstickarticle/3fc2fb01-4c68-4654-a3c8-385b9a4d5973/images/7e1b99e2-1144-4f8a-b2ef-1ba06e19700f.png) ![LinkButton Control in ASP.Net](https://www.mindstick.com/mindstickarticle/3fc2fb01-4c68-4654-a3c8-385b9a4d5973/images/11782ab7-9e76-4d1d-a0b8-89a2ee2077bf.png)

---

Original Source: https://www.mindstick.com/articles/160/linkbutton-in-asp-dot-net

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
