Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 ASP.NET4.0
Hi
Folk's
 
I am developing lo-gin page and most of it is completed and i required to hide the URL i.e(if i copied the lo-gin page URL and i pasted in new tab address bar it must not open that lo-gin page )
 
It is my scenario can any plz help me out
 

 

 

 

thank's®ard's
mahesh.b.p.c
Posted 18-Jan-13 4:01am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Use session...
 
At login_load event count the session, but first store the username in session and check, i.e
if(Session["Username"] == null)
    Response.Redirect("Home.aspx");
else
    Response.Redirect("Login.aspx");
  Permalink  
Comments
mahesh.b.p.c at 18-Jan-13 9:12am
   
that is not my requirement ,i need to overcome copying the URL of any page and pasted in a address bar lo-gin page must not open that is my query ...
 
thank's for reply
Krunal Rohit at 18-Jan-13 9:13am
   
Have you tried out this code ?
mahesh.b.p.c at 18-Jan-13 9:34am
   
i already done with that code

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

  Print Answers RSS
0 Maciej Los 295
1 OriginalGriff 259
2 Sergey Alexandrovich Kryukov 205
3 Aajmot Sk 187
4 Sinisa Hajnal 176
0 OriginalGriff 7,800
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 18 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100