MasterPages with Ajax
am 31.01.2008 23:44:16 von Rodrigo Ferreira
Hi,
I´m trying to create a master-content page that does not refresh all the
page when a link is click, I mean that only the content page should be
refreshed. How to do this?
Thanks
Re: MasterPages with Ajax
am 31.01.2008 23:50:36 von Mark Fitzpatrick
No. This won't work. Updatepanels and Ajax are designed to work on parts of
a page by replacing content with data returned from the processing page.
It's not used for navigating from one page to another and that would
probably break things because the Viewstate and control tree is suddenly
very different since they are from two different pages.
You may have seen something that would lead you to believe this is a
possibility. The way this look is usually accomplished is to have the links
act as linkbuttons, which when posted back to the server load a user control
into a container such as a placeholder control. The timing of this can be
tricky and is not for the feint of heart as it can be very maddening to get
the timing and state management just right.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"Rodrigo Ferreira" wrote in message
news:OcLCBrFZIHA.4712@TK2MSFTNGP05.phx.gbl...
> Hi,
>
> I´m trying to create a master-content page that does not refresh all the
> page when a link is click, I mean that only the content page should be
> refreshed. How to do this?
> Thanks
>