Click here to Skip to main content
15,895,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please tell me how to prevent url input in addressbar in mvc .net ? I f i want to write / paste url in address bar then previous url shown there not current url . For example

localhost:8080/home/index which is main url.

if i want to paste below url in the address bar
localhost:8080/home/Profile then u can't paste the url .how can i do that?
Posted
Updated 6-Jan-15 23:01pm
v2
Comments
[no name] 7-Jan-15 4:45am    
NOt clear, please explain what exactly you want.
King Fisher 7-Jan-15 4:47am    
r u looking for URl Rewriting?
Arjsrya 7-Jan-15 4:56am    
Could you please give few information on your question?

1 solution

You cannot control data in a browser's URL or lock the address bar.
The client browser has control on it.

What you can try is redirect the URL in some circumstances - https://support.microsoft.com/kb/324000/[^].
 
Share this answer
 

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