Click here to Skip to main content
15,910,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have developed web application in asp.net(c#)..for specific pages i need to restrict or disable back navigation in menu bar....Please help me for the above problem with code..
Posted

It is not possible. you could perhaps try to disable the browser cache if you don't want the user to see anything when he navigates back and forth.
 
Share this answer
 
Comments
Mukunda Raj 12-Apr-12 4:39am    
Could you please tell me how to disable the browser cache"??
I am not clear about your question perhaps i think this is the situation

You have 4 page A,B,C,D ,you want to open D without menu bar.the try the following code:

Structure of Page A which hold the link to page D

HTML
<html><head>
<pre lang="Javascript">

<script type="javascript">
function OpenWindow(){

var loc = "relative or absolute url of page" // Here url of D 
window.open(loc, "Title", 'menubar=0', true);
}
</script>

</head>
<body>
<a href="#"  önclick=" OpenWindow()">Go to Page D</a>



</body>
</html>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900