Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I force a refered page to Postback?

    Hi,

    I have method on a page, lets call it "History.aspx.cs"

    After this method runs and changes some parameters, it
    needs to refer back to itself:

    Response.Redirect("History.aspx", false);

    Problem is, The page always shows the same information as before the
    method fired. After receiving the redirect to itself, it thinks that it is "PostBack" and doesn't refresh the page with the changes. Is there a way I can change
    the Response.Redirect("History.aspx", false); to make do a page load ?

    Thank You in advance for your help,

    Eric

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,739
    Thanks
    41
    Thanked 191 Times in 190 Posts
    what are you trying to do? the false makes the page you are on stop loading- so if you are calling yourself but not loading or referencing something that you needed to load then you are terminating early- plus if you are calling yourself and you never finished loading (in this case seems to be) then you have to post back because you never finished posting... cannot help with the vagueness of code though- no clue what end you are trying to get to

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE


  •  

    Posting Permissions

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