Click here to Skip to main content
15,113,531 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionsending email on particular Date & Time Pin
prasanna2043-Oct-11 22:47
Memberprasanna2043-Oct-11 22:47 
AnswerRe: sending email on particular Date & Time Pin
Anurag Gandhi4-Oct-11 2:50
professionalAnurag Gandhi4-Oct-11 2:50 
AnswerRe: sending email on particular Date & Time Pin
Morgs Morgan4-Oct-11 6:06
MemberMorgs Morgan4-Oct-11 6:06 
QuestionConnection String problem in web.config! Pin
5553363-Oct-11 21:09
Member5553363-Oct-11 21:09 
QuestionRedirect, url rewrite and login problem Pin
CodeGust3-Oct-11 17:04
MemberCodeGust3-Oct-11 17:04 
AnswerRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 6:28
MemberMorgs Morgan4-Oct-11 6:28 
GeneralRe: Redirect, url rewrite and login problem Pin
CodeGust4-Oct-11 6:52
MemberCodeGust4-Oct-11 6:52 
GeneralRe: Redirect, url rewrite and login problem Pin
Morgs Morgan4-Oct-11 7:05
MemberMorgs Morgan4-Oct-11 7:05 
Gathering from the original post you said you have set "windows forms" authentication?
But to my understanding those are two different authentication types:

1. Windows Authentication
- http://msdn.microsoft.com/en-us/library/ff647405.aspx[^]
2. Forms Authentication
- http://msdn.microsoft.com/en-us/library/ff647070.aspx[^]

But likewise, there are many ways you can resolve figuring out as to whether or not a user is logged, simply create lets say a Session["user"] when user logs in. e.g.
C#
Session[ "user" ] = "ValueToIdentifyUser";
//ValueToIdentifyUser can be a unique Id, Email Address, or even username that's your choice!


To check if requesting user has logged in, check like so:

C#
if( Session[ "user" ] != null )
{
    //user is logged in, redirect to appropriate page
}
else
{
   //Oops!!! user not logged, redirect to appropriate page
}


Hope that helps,
Morgs
QuestionImprove page performance for aspx page Pin
vishnukamath3-Oct-11 2:59
Membervishnukamath3-Oct-11 2:59 
AnswerRe: Improve page performance for aspx page Pin
Parwej Ahamad3-Oct-11 9:41
professionalParwej Ahamad3-Oct-11 9:41 
AnswerRe: Improve page performance for aspx page Pin
Not Active3-Oct-11 10:51
mentorNot Active3-Oct-11 10:51 
QuestionEmail reply color Pin
Blikkies3-Oct-11 1:45
professionalBlikkies3-Oct-11 1:45 
AnswerRe: Email reply color Pin
Parwej Ahamad3-Oct-11 9:44
professionalParwej Ahamad3-Oct-11 9:44 
QuestionHow to Focus On The Next Text Box After PostBack? Pin
behzad_Sadeghi2-Oct-11 10:19
Memberbehzad_Sadeghi2-Oct-11 10:19 
QuestionCCTV in asp.net Pin
Hassan Sajedi2-Oct-11 7:32
MemberHassan Sajedi2-Oct-11 7:32 
AnswerRe: CCTV in asp.net Pin
Pravin Patil, Mumbai3-Oct-11 20:59
MemberPravin Patil, Mumbai3-Oct-11 20:59 
QuestionC# asp.net 2010 Pin
Member 82175172-Oct-11 7:25
MemberMember 82175172-Oct-11 7:25 
GeneralCode chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
Hoàng Thái Bình2-Oct-11 6:59
MemberHoàng Thái Bình2-Oct-11 6:59 
AnswerRe: Code chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
Dalek Dave2-Oct-11 8:30
professionalDalek Dave2-Oct-11 8:30 
AnswerRe: Code chạy thủ tục thêm, xóa, sửa, xem chi tiết, hiện danh sách của bảng Nhân viên Pin
TheGreatAndPowerfulOz3-Oct-11 11:19
MemberTheGreatAndPowerfulOz3-Oct-11 11:19 
QuestionISs there any solution. Pin
uspatel30-Sep-11 22:26
professionaluspatel30-Sep-11 22:26 
AnswerRe: ISs there any solution. Pin
Richard MacCutchan30-Sep-11 22:29
mveRichard MacCutchan30-Sep-11 22:29 
GeneralRe: ISs there any solution. Pin
uspatel30-Sep-11 22:48
professionaluspatel30-Sep-11 22:48 
Questionoverride master page Pin
byka30-Sep-11 5:27
Memberbyka30-Sep-11 5:27 
AnswerRe: override master page Pin
Parwej Ahamad30-Sep-11 5:58
professionalParwej Ahamad30-Sep-11 5:58 

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.