|
-
Jul 20th, 2012, 05:22 AM
#1
Thread Starter
Frenzied Member
[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!
-
Jul 20th, 2012, 06:01 AM
#2
Thread Starter
Frenzied Member
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.
-
Jul 20th, 2012, 09:50 AM
#3
Fanatic Member
Re: Stop Master Page Redraw?
 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. 
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.
-
Jul 23rd, 2012, 01:12 AM
#4
Re: Stop Master Page Redraw?
 Originally Posted by rjv_rnjn
That was fast.
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
-
Jul 24th, 2012, 03:09 AM
#5
Thread Starter
Frenzied Member
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.
-
Jul 24th, 2012, 03:49 AM
#6
Re: [RESOLVED] Stop Master Page Redraw?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|