[RESOLVED] Stop Master Page Redraw?
Hi,
I am writing a web application which consists of a master page (header / menus) which does not change and content pages. When I do something like click on a button it causes a post back which is correct but this redraws the whole screen and becomes annoying because every post back and the whole screen flickers.
Is there a way to only refresh the content page?
Many Thanks,
Jiggy!
Re: Stop Master Page Redraw?
Sorted. You need to put at the top of your master page the script manager and then in each content page rap your controls around with and updatepanel control. Much smoother to look at.
Re: Stop Master Page Redraw?
Quote:
Originally Posted by
Jigabyte
You need to put at the top of your master page the script manager and then in each content page rap your controls around with and updatepanel control. Much smoother to look at.
That was fast. :thumb:
I hope you did not wrap entire contents page inside an update panel. Ideally one should use update panel judiciously around a group of controls that are to be affected and use trigger mechanism to update them.
Re: Stop Master Page Redraw?
Quote:
Originally Posted by
rjv_rnjn
That was fast. :thumb:
I hope you did not wrap entire contents page inside an update panel. Ideally one should use update panel judiciously around a group of controls that are to be affected and use trigger mechanism to update them.
Also, it should be pointed out that the UpdatePanel is a control that is very easily abused, and people try to make it do "stuff" that it was never really intended for. You may want to look to using jQuery (which now ships with the sample ASP.NET Project Templates) to do the asynchronous requests to the server.
Gary
Re: [RESOLVED] Stop Master Page Redraw?
Thank you both. I have rapped it around all my content because I have a gridview and text box entrys where the user can add / edit /delete so I need only the content to refresh so it gets the data changes into the grid.
Re: [RESOLVED] Stop Master Page Redraw?