views:

38

answers:

2

Hello everybody.

When an asynchronous postback happened inside update panel, another postback happens also for MasterPage not only update panel embedded page .

I want to prevent this MasterPage postback .

is this possible ?

think like i have a MasterPage

and another page which is test.aspx which is content page of MasterPage

i have update panel at test.aspx

when asynchronous postback happens at this test.aspx update panel it also loads MasterPage Page_Load

i want to prevent this (it should not also load MasterPage Page_Load)

Thank you

+1  A: 

ASP.NET's UpdatePanel (as well as any normal asp.net page)'s postback does postback the master page as well.

Normally, to properly deal with postbacks, programmers check for it and program accordingly :

protected void Page_Load(object sender, EventArgs e)
{
    if (!Page.IsPostBack)
    {
        dataBindAndSetUpControls();
    }
 }

So, my answer here is that I don't know if it is possible (and if it is, it certainly isn't easy), and that your request is not a normal thing to do, and programmers handle PostBacks via the blurb above.

rlb.usa