This is a migrated thread and some comments may be shown as answers.

I want a LinkButton in an Ajaxified panel to execute a full PostBack - how can I do this?

1 Answer 18 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 11 Oct 2016, 07:23 PM

I have set up a page using <telerik:RadAjaxManager> and <asp:Panel>. The <asp:Panel> is ajaxified.

Within the <asp:Panel> I have a button. This button is supposed to "escape" the AJAX mechanism and reload the whole page via PostBack when being pushed.

What do I need to do to have the button reload the whole page, not just the <asp:Panel> area?

1 Answer, 1 is accepted

Sort by
0
Loïc
Top achievements
Rank 1
answered on 12 Oct 2016, 09:55 AM

Hi A!

An other solution could be :

ASPX:

<telerik:RadLinkButton ID="RadLinkButton1" runat="server" OnClientClicked="onReloadWholePage">
</telerik:RadLinkButton>

 

JavaScript:

function onReloadWholePage() {
    window.location.reload();
}
Tags
Ajax
Asked by
A
Top achievements
Rank 1
Answers by
Loïc
Top achievements
Rank 1
Share this question
or