Click here to Skip to main content
15,905,504 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

I create a website but when i copy the url in particular page and past in address bar it show that page, How I resolve this problem
Posted
Comments
Deependra Khangarot 4-Apr-13 0:33am    
Hi Rajan,

Please provide more details what exactly you need?

Hi,

you cannot restrict user by entering the URL in address bar, but you can restrict on a popup window, but not on main window/screen.


So, for restricting address bar in popup window, you can hide the complete address bar by setting "location=no" in window.open function.
refer window.open - msdn[^] for more.

hope it helps.
 
Share this answer
 
C#
try
        {
            String re = Request.UrlReferrer.ToString();
            //code//
        }
        catch
        {
            Response.Redirect("~/abcd.aspx");
        }



try this code in page load part...
 
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