Hello, I have a RadButton which lives on a user control, which in turn is within a master page.
I'm trying to use the RegisterPostBackControl method of the master page's RadScriptManager object to register the button, but upon clicking it still is causing a FULL postback rather than executing the button's OnClick which references a separate ExportToExcel method I've created.
I have the Page_Load in the user control below as follows, what am I doing wrong?
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
((RadScriptManager)Page.Master.FindControl("RadScriptManager1")).RegisterPostBackControl(_ExportButton);
}
}
Here is the markup for the RadButton:
<telerik:RadButton runat="server" ID="_ExportButton" Text="Export" Enabled="False" AutoPostBack="True" OnClick="ExportToExcelClick" />
I'm trying to use the RegisterPostBackControl method of the master page's RadScriptManager object to register the button, but upon clicking it still is causing a FULL postback rather than executing the button's OnClick which references a separate ExportToExcel method I've created.
I have the Page_Load in the user control below as follows, what am I doing wrong?
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack)
{
((RadScriptManager)Page.Master.FindControl("RadScriptManager1")).RegisterPostBackControl(_ExportButton);
}
}
Here is the markup for the RadButton:
<telerik:RadButton runat="server" ID="_ExportButton" Text="Export" Enabled="False" AutoPostBack="True" OnClick="ExportToExcelClick" />