Disable Browser Back Button Programmatically
Today I will show how to Disable Back Button of Browser Programmatically.
We know that browser's back button can not be disabled because browser resides at user's machine and not on Server. All we can do is to prevent a page for being cached. So if a page is not being cached at client then browser back button will not allow a user to navigate to that page.
How to do this:
Suppose you dont want the user to navigate to this Page1.aspx from Page2.aspx.
Use following 3 lines in HEAD section (HTML view) of Page1.aspx
Then in the code behind inside Page_Load event of Page1.aspx:
C # (C Sharp)