Click here to Skip to main content
15,917,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: AutoRedirect... Pin
R. Giskard Reventlov19-Feb-10 6:47
R. Giskard Reventlov19-Feb-10 6:47 
GeneralRe: AutoRedirect... Pin
Not Active19-Feb-10 7:12
mentorNot Active19-Feb-10 7:12 
GeneralRe: AutoRedirect... Pin
R. Giskard Reventlov19-Feb-10 7:18
R. Giskard Reventlov19-Feb-10 7:18 
GeneralRe: AutoRedirect... Pin
Oakman20-Feb-10 2:43
Oakman20-Feb-10 2:43 
GeneralRe: AutoRedirect... Pin
R. Giskard Reventlov19-Feb-10 5:00
R. Giskard Reventlov19-Feb-10 5:00 
GeneralRe: AutoRedirect... Pin
awedaonline19-Feb-10 5:03
awedaonline19-Feb-10 5:03 
GeneralRe: AutoRedirect... Pin
awedaonline19-Feb-10 5:12
awedaonline19-Feb-10 5:12 
GeneralRe: AutoRedirect... Pin
R. Giskard Reventlov19-Feb-10 5:31
R. Giskard Reventlov19-Feb-10 5:31 
Okay@ let's pretend you have a site with a Master Page, Default.aspx, Links.aspx, Contacts.aspx and Login.aspx.

The only 2 pages that anyone can see without some form of authentication are Default and Login. If they try to access any other page they get redirected to LOgin if the Session variable that tracks their status is empty. If you create an attribute that checks for their status and redirects accordingly from the Master Page that should help to solve your issue. What you will also have to do is to, for example, maybe have some code underlying a menu click option that tracks the page they were trying to get to and pass that into the session variable.

See how you get on: I think you should be able to figure out the rest of it from here.
Tychotics: take us back to the moon

"Life, for ever dying to be born afresh, for ever young and eager, will presently stand upon this earth as upon a footstool, and stretch out its realm amidst the stars."
H. G. Wells

GeneralRe: AutoRedirect... Pin
awedaonline19-Feb-10 7:11
awedaonline19-Feb-10 7:11 
GeneralRe: AutoRedirect... Pin
R. Giskard Reventlov19-Feb-10 7:20
R. Giskard Reventlov19-Feb-10 7:20 
GeneralRe: AutoRedirect... Pin
Not Active19-Feb-10 7:26
mentorNot Active19-Feb-10 7:26 
AnswerRe: AutoRedirect... Pin
Rutvik Dave19-Feb-10 7:53
professionalRutvik Dave19-Feb-10 7:53 
GeneralRe: AutoRedirect... Pin
Brij19-Feb-10 8:19
mentorBrij19-Feb-10 8:19 
GeneralRe: AutoRedirect... Pin
awedaonline3-Mar-10 23:18
awedaonline3-Mar-10 23:18 
AnswerRe: AutoRedirect... Pin
JimBob SquarePants19-Feb-10 12:23
JimBob SquarePants19-Feb-10 12:23 
GeneralRe: AutoRedirect... Pin
awedaonline3-Mar-10 23:17
awedaonline3-Mar-10 23:17 
QuestionAccessing WebUserControls and Webform properties Pin
markymark8219-Feb-10 0:18
markymark8219-Feb-10 0:18 
AnswerRe: Accessing WebUserControls and Webform properties Pin
Chetan Patel19-Feb-10 1:32
Chetan Patel19-Feb-10 1:32 
Questionconnection to sqlservercompactedition Pin
4anusha419-Feb-10 0:13
4anusha419-Feb-10 0:13 
QuestionDrop Down Weird behaviour Pin
Mogamboo_Khush_Hua18-Feb-10 23:44
Mogamboo_Khush_Hua18-Feb-10 23:44 
AnswerRe: Drop Down Weird behaviour Pin
R. Giskard Reventlov19-Feb-10 0:37
R. Giskard Reventlov19-Feb-10 0:37 
QuestionDatalist in Crystal Report Pin
srikanta42218-Feb-10 23:37
srikanta42218-Feb-10 23:37 
QuestionSSRS permission Pin
arkiboys18-Feb-10 23:04
arkiboys18-Feb-10 23:04 
AnswerRe: SSRS permission Pin
arkiboys18-Feb-10 23:17
arkiboys18-Feb-10 23:17 
GeneralRe: SSRS permission Pin
arkiboys19-Feb-10 0:24
arkiboys19-Feb-10 0:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.