Hi,
How can we stop user to click back button in ASP.NET?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sukesh MarlaPosted Aug 16, 2012, 11:39 AM
Make sure to check this is correct answer
tom linkerPosted Aug 17, 2012, 6:46 AM
tom linkerPosted Aug 16, 2012, 6:48 AM
please explain with an example.
Sukesh MarlaPosted Aug 14, 2012, 12:57 PM
1.Disable it
2.set it OnClientClick property to "javascript:return false;"
Or even
in javascript create function as
function CheckAndDisable()
{
//If need to disable
return false;
//else
return true;
}
...
And Set OnClientClick to "javascript:return CheckAndDisable();"