What is the best way to prevent problems that happen when the user presses
the browser's back button. For instance.  I have a registration site where
the first screen asks the user to enter some basic information. After they
press submit, the information is added to the database, and it takes them to
another screen where they can enter more information.  Now, what if the user
suddenly decides that he mistyped the address or name, so they just hit the
browser's back button.  Well, the problem there is that if they correct the
address and submit again, it will add another record to the database.  I
realize that I could try to look up the information based on name, or
something, but problem is that if they changed their name, it will still add
a second record because it didn't find the original because the name
changed.  I've tired the following commands in my Page_Load, and they aren't
working.  I also tried them in the Page_Init, and they aren't working there
either.

   Response.Cache.SetAllowResponseInBrowserHistory(False)
   Response.Cache.SetCacheability(HttpCacheability.NoCache)

Anyone know how to do what I'm looking for?

Thanks,
Jesse

Thanks,
Jesse





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to