Hi ,
can any one tell me how to disable the back button in asp.net
i have done like this
<script >
window.onlad = "window.document.forward(1)";
</script>

but no use...is there any other way to do this.

Hi ,
can any one tell me how to disable the back button in asp.net
i have done like this
<script >
window.onlad = "window.document.forward(1)";
</script>

but no use...is there any other way to do this.

Look into the function window.location.replace. It should solve your problem. But criplling the client in such a way is not a good practice IMO; you should never control your clients' browser behavior.

If a web page takes control of my browser, I will not be back.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.