Click to See Complete Forum and Search --> : help: refresh child page from masterpage


bxlbjorn
05-17-2007, 07:11 AM
Can someone help me with the following issue:

I work with a masterpage.
IN the masterpage is a login control. This Logincontrol however is nested within an AJAX update panel, which means the rest of the page, inclusding the child page, does NOT refresh when logging in or out.
That is the intent, however...

I DO want the child page to refresh when it is a certain page, let's call it "cart.aspx".
Now, I have found a way to detect wether or not cart.aspx is loaded in the masterpage, but I idon't know what code to write in the script part of the masterpage to refresh the child page.

this is the code i have tried:

If HttpContext.Current.Request.RawUrl.ToString.Contains("cart.aspx") Then
'the line above works perfectly


HttpContext.Current.Response.redirect("cart.aspx")
'this one doesn't

End If


I get an error page saying I didn't direct in a correct way...

Can anyone help me ?