Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Hyperlink control and link control in ASP.NET?

Tags:

asp.net

What is the difference between Hyperlink control and link control ASP.NET?

like image 586
Dhanapal Avatar asked Jun 01 '09 05:06

Dhanapal


People also ask

What is HyperLink control in asp net?

Use the HyperLink control to create a link to another Web page. The HyperLink control is typically displayed as text specified by the Text property. It can also be displayed as an image specified by the ImageUrl property. If both the Text and ImageUrl properties are set, the ImageUrl property takes precedence.

What is HyperLink control?

The Hyperlink control displays a HTML link to an address, which opens in the default browser for the computer.

What is link button control?

Use the LinkButton control to create a hyperlink-style button on the Web page. The LinkButton control has the same appearance as a HyperLink control, but has the same functionality as a Button control. If you want to link to another Web page when the control is clicked, consider using the HyperLink control.

What is HyperLink in C#?

The hyperlink is the control to link another page. The hyperlink can navigate to “URL” as well as xaml page. The HyperLink Control is the control to link to another page. The HyperLink can navigate to an "URL" as well as an XAML page.


1 Answers

The purpose of both controls is same. But there is one major difference between these two, i.e. HTML Hyperlink control is an HTML control, whenever it is clicked the page navigates to the target page. ASP.NET Link Button control is a server control, whenever the user clicks on it, the request is redirected back to the server and in its response the page is navigated to the target page.

like image 185
Shoban Avatar answered Oct 22 '22 20:10

Shoban