Click here to Skip to main content
15,907,392 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionDrop file extension HttpModule + Login Control Pin
eggsovereasy28-Aug-06 10:59
eggsovereasy28-Aug-06 10:59 
QuestionForm Authentication Pin
Bassam Saoud28-Aug-06 10:32
Bassam Saoud28-Aug-06 10:32 
Questionimporting a swish file into ASP.NET Pin
Insia28-Aug-06 9:02
Insia28-Aug-06 9:02 
QuestionWeb Service vs. Web Form Security Pin
JimmyG1328-Aug-06 7:49
JimmyG1328-Aug-06 7:49 
QuestionWhat is "content file" and "code-behind file" ? Pin
Husam Burhan28-Aug-06 7:16
Husam Burhan28-Aug-06 7:16 
AnswerRe: What is "content file" and "code-behind file" ? Pin
japel28-Aug-06 16:43
japel28-Aug-06 16:43 
QuestionPassing Controls Pin
cisco210328-Aug-06 4:06
cisco210328-Aug-06 4:06 
AnswerRe: Passing Controls Pin
coolestCoder28-Aug-06 4:42
coolestCoder28-Aug-06 4:42 
Hi,

cisco2103 wrote:
I want my users to be logged in to view certain content of my site.


Step 1 : You can create a Session for each user.


cisco2103 wrote:
If the user clicks on a link without being logged on I want user to be redirected to my login.aspx and after the user logs in be directed to the link that they clicked on?


All the links where you want to check whether a user is logged on or not, check the session already created in "Step 1". For this, you can create a common page which accepts a query string of a target link. All of your links will point to this page. This page will check whether an user is logged in or not. If yes it will redirect to the target link from the query string, else to the log in page.

The log in page will also accept a query string, denoting where the user should be redirected. When user logs in successfully, the ok button will redirect the user to the source from where session was expired or user tried to access without logging in.


Hope i am clear enough. As far as syntactical part, you can always get help on msdn library.


<marquee>"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder

Anant Y. Kulkarni

GeneralRe: Passing Controls Pin
Not Active28-Aug-06 5:13
mentorNot Active28-Aug-06 5:13 
GeneralRe: Passing Controls Pin
cisco210328-Aug-06 5:22
cisco210328-Aug-06 5:22 
GeneralRe: Passing Controls Pin
Not Active28-Aug-06 5:57
mentorNot Active28-Aug-06 5:57 
AnswerRe: Passing Controls Pin
Not Active28-Aug-06 5:11
mentorNot Active28-Aug-06 5:11 
GeneralRe: Passing Controls Pin
cisco210328-Aug-06 5:26
cisco210328-Aug-06 5:26 
GeneralRe: Passing Controls Pin
Not Active28-Aug-06 5:55
mentorNot Active28-Aug-06 5:55 
Questionhi Pin
FREAK880228-Aug-06 4:01
FREAK880228-Aug-06 4:01 
QuestionNew to Asp.Net Pin
drc_no128-Aug-06 3:39
drc_no128-Aug-06 3:39 
AnswerRe: Read XML file from App_Data Pin
Guffa28-Aug-06 4:01
Guffa28-Aug-06 4:01 
GeneralRe: New to Asp.Net [modified] Pin
drc_no128-Aug-06 4:22
drc_no128-Aug-06 4:22 
GeneralRe: Read XML file from App_Data Pin
drc_no128-Aug-06 4:50
drc_no128-Aug-06 4:50 
QuestionHow do I manually fire an ItemCommand Event in a datagrid. Pin
Sivaprasad C28-Aug-06 3:10
Sivaprasad C28-Aug-06 3:10 
AnswerRe: How do I manually fire an ItemCommand Event in a datagrid. Pin
postmaster@programmingknowledge.com28-Aug-06 3:26
postmaster@programmingknowledge.com28-Aug-06 3:26 
AnswerRe: How do I manually fire an ItemCommand Event in a datagrid. Pin
minhpc_bk28-Aug-06 6:34
minhpc_bk28-Aug-06 6:34 
GeneralRe: How do I manually fire an ItemCommand Event in a datagrid. Pin
Sivaprasad C28-Aug-06 19:51
Sivaprasad C28-Aug-06 19:51 
QuestionHow to add module in ASP.Net [modified] Pin
Amit Agarrwal28-Aug-06 2:58
Amit Agarrwal28-Aug-06 2:58 
Questionnew to asp.net Pin
haseeb_saeed28-Aug-06 2:10
haseeb_saeed28-Aug-06 2:10 

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.