New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Getting Started

The following tutorial demonstrates how to set up a page with a RadPushButton control and attach its OnClick server event:

  1. In the default page of a new ASP.NET AJAX-enabled Web Application add a RadPushButton control:


    <telerik:RadPushButton id="RadPushButton1" runat="server" text="My Button">

    The Text property specifies the text displayed in the RadPushButton control.

  2. To hook to the OnClick server-side event of RadPushButton switch to Design view of Visual Studio and double click on the button. This operation will insert the following function in the code behind file:


    protected void RadPushButton1_Click(object sender, EventArgs e)


    Protected Sub RadPushButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    End Sub

    as well as add OnClick="RadPushButton1_Click" to the RadPushButton's declaration. In the Click event handler add the code that you want to be executed when the RadPushButton control is clicked.

See Also

In this article
Not finding the help you need? Improve this article