<script type="text/javascript">
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
</script>
This will forward to the last history page.
<script type="text/javascript">
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
</script>
public void ClientMsg(string MsgTxt)
{
ScriptManager.RegisterClientScriptBlock(
this.Page,
this.Page.GetType(),
"clientScript",
"alert('" + MsgTxt + "')",
true);
}