Unwanted Postbacks

Discussion in 'ASP .Net' started by Stuart Ferguson, Jul 24, 2007.

  1. I currently have a simple 2 page application using AJAX Update panels
    and i am having a few problems with the Browser back button.

    If i have Page1.aspx with an update panel containing either a LinkButton
    or Button control which on the Click Event redirects
    to Page2.aspx then the redirection is performed fine...however when i
    then click the back button on the browser to return to Page1.aspx
    a trip is made back to the server and the Page_Load event of Page1.aspx
    is fired.

    If i have the same application but use the asp:HyperLink control to do
    the redirection from within the UpdatePanel the behaviour is
    that when the browser back button is clicked there is no trip back up to
    the server. The same is also true if in the first
    example Partial Rendering is turned off on the Script Manager.

    It may also be worth noting that all my redirections using the
    LinkButton and Button controls are done with Response.Redirect and NOT
    Server.Transfer.

    Has anyone else seen this behavior and if yes are there any ways around
    it?

    Stuart

    *** Sent via Developersdex http://www.developersdex.com ***
    Stuart Ferguson, Jul 24, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. BobLeavitt

    .NET 1.1 created unwanted logon screen

    BobLeavitt, Jun 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    667
    Mark Broadbent
    Jun 21, 2005
  2. Kevin Chandler

    Unwanted Refresh/Redraw

    Kevin Chandler, Jan 29, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,179
    Charlie Nilsson [MSFT]
    Jan 29, 2004
  3. sanjay patil via .NET 247

    Previous(Unwanted) event handled when page refreshed by key F5

    sanjay patil via .NET 247, Apr 27, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    sanjay patil via .NET 247
    Apr 27, 2004
  4. Replies:
    0
    Views:
    443
  5. Reid

    Unwanted Gridview Postbacks

    Reid, Nov 1, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    731
Loading...

Share This Page