Results 1 to 6 of 6

Thread: [RESOLVED] Stop Master Page Redraw?

  1. #1
    Frenzied Member
    Join Date
    Aug 06
    Posts
    1,770

    Resolved [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!

  2. #2
    Frenzied Member
    Join Date
    Aug 06
    Posts
    1,770

    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.

  3. #3
    Fanatic Member
    Join Date
    Jun 04
    Location
    All useless places
    Posts
    916

    Re: Stop Master Page Redraw?

    Quote Originally Posted by Jigabyte View Post
    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.

  4. #4
    ASP.NET Moderator gep13's Avatar
    Join Date
    Nov 04
    Location
    The Granite City
    Posts
    21,838

    Re: Stop Master Page Redraw?

    Quote Originally Posted by rjv_rnjn View Post
    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

  5. #5
    Frenzied Member
    Join Date
    Aug 06
    Posts
    1,770

    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.

  6. #6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •