Getting Started with the Telerik LinkButton
The following tutorial demonstrates how to set up a page with a RadLinkButton control and configure its NavigateUrl and Target properties.
-
In the default page of a new ASP.NET AJAX-enabled Web Application add a RadLinkButton control:
ASP.NET
<telerik:RadLinkButton id="RadLinkButton1" runat="server" text="My Button"> </telerik:RadLinkButton>
The Text property specifies the text displayed in the RadLinkButton control.
Define the URL that will be navigated to when the button is clicked in the NavigateUrl property (e.g.,
NavigateUrl="https://www.telerik.com"
).Set an open target for the URL through the Target property (e.g.,
Target="_blank"
). The Target="_blank" property takes values from the HyperLink.Target Property.
At the end your RadLinkButton declaration should look like that:
ASP.NET
<telerik:RadLinkButton ID="RadLinkButton1" Text="RadLinkButton" NavigateUrl="https://www.telerik.com" Target="_blank"></telerik:RadLinkButton>