Author: wlawing | Posted on: 2/4/2010 11:15:12 AM | Views : 280

I know the back button always presents a problem, but this one doesn't make any sense.

I have a simple details view and a button on a page. The button sends the user to the homepage. I am trying to prevent the user from being able to use the detailsview if they click Back in their browser.

This is the button click event
DetailsView1.Visible = False
                RemovedControl(DetailsView1)
                Response.Redirect("home.aspx")
When the button is clicked...oddly the user is sent to the homepage then when they click the browser back button they are sent to previous page with the detailsview still visiible.
I know I am missing something, can someone please fill me in?
Why is the detailsview still visible?


Thank you

...

Go to the complete details ...