CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2004
    Posts
    114

    Update panel and Resepons.Redirect

    I need to execute Updatepanel.update and then response.redirect in the same button_click event. I find that page is redirected, but the content in the update panel is not saved.In many forums, solution is given as doing postback on the updatepanel using Javascript, but haven't been able to establish it. Anyone has any tips or example of how to update Updatepanel and redirect page in the same go?

  2. #2
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Update panel and Resepons.Redirect

    Quote Originally Posted by shuvo View Post
    I find that page is redirected, but the content in the update panel is not saved.
    The update method of the UpdatePanel updates (refresh) the panel, it's not saving any data like a SqlDataSource. Or what exactly do you mean with 'the update panel is not saved'?

  3. #3
    Join Date
    Mar 2004
    Posts
    114

    Re: Update panel and Resepons.Redirect

    Update panel doesn't refresh, means UpdatePanel.Update method doesn't accomplish the desired tasks.

  4. #4
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: Update panel and Resepons.Redirect

    How can see if it doesn't refresh if you have a Response.Redirect in the same button click event?

  5. #5
    Join Date
    Mar 2004
    Posts
    114

    Re: Update panel and Resepons.Redirect

    UpdatePanel.Update should update the contents inside the panel like save commands for any text control, so if we come back to that page, we would find that the latest content on that text control is not retained, but if we don't redirect from the the page finish the event on updatepanel.update(), then everything is saved.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured