Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Async Refresh is not happening after implementing Master Page
posted

Hello Everyone.

I am using master page concept in my application(asp.net). In the content page i have webdialog window and inside wibdialog i have button control with ascyn refresh as below.

<ig:WebDialogWindow ID="digFilter" runat="server" InitialLocation="Centered" Modal="True"Moveable="False" Width="810px">

<ContentPane>
<Template>
<table>
<tr><td>

<igmisc:WebAsyncRefreshPanel runat="server" ID="pnlAsyncfilter">
<asp:Button ID="btn" runat="server" Text="Test" />
</igmisc:WebAsyncRefreshPanel>

</td></tr>
</table>
</Template>
</ContentPane>
</ig:WebDialogWindow>

When i click the Test button its posting back to server. But, when i do this same concept without master page its not posting back to server and working fine. Any idea greatly helpful

Regards,
M.seenuvasan

  • 45049
    Suggested Answer
    posted

    M.seenuvasan,

    I recommend using UpdatePanel in place of WebAsyncRefreshPanel (WARP) in this scenario.  This is because WARP is built atop of our own CallbackManager framework for AJAX, while UpdatePanel and WebDialogWindow are built atop Microsoft's ASP.NET AJAX framework.  The two frameworks can't be reliably used together, with an object from one framework inside an object from another.

  • 60
    posted

    Hi,

    When you are using a Master Page, you must register the triggers in the Page_Load, like this:

    protected void Page_Load(object sender, EventArgs e)
            {
                this.WebAsyncRefreshPanel2.AddLinkedRequestTrigger(this.Btn);
            }

    Hope this helps.