Click here to Skip to main content
15,901,122 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how can I close the window I'm in Pin
Guffa27-Sep-07 8:05
Guffa27-Sep-07 8:05 
AnswerRe: how can I close the window I'm in Pin
Malcolm Smart27-Sep-07 4:14
Malcolm Smart27-Sep-07 4:14 
AnswerRe: how can I close the window I'm in Pin
Amol M Vaidya27-Sep-07 21:04
professionalAmol M Vaidya27-Sep-07 21:04 
AnswerRe: how can I close the window I'm in Pin
John-ph27-Sep-07 5:01
John-ph27-Sep-07 5:01 
QuestionWant to Fire a Query on DataTable Pin
varshavmane27-Sep-07 3:06
varshavmane27-Sep-07 3:06 
AnswerRe: Want to Fire a Query on DataTable Pin
John-ph27-Sep-07 5:10
John-ph27-Sep-07 5:10 
GeneralRe: Want to Fire a Query on DataTable Pin
varshavmane27-Sep-07 8:08
varshavmane27-Sep-07 8:08 
QuestionAuthenticate Windows User Pin
Programm3r27-Sep-07 2:58
Programm3r27-Sep-07 2:58 
Hi all,

I'm trying to authenticate the currently logged on user with a username / password login page.
I have done this so far:
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
{
    Session["sHRUID"] = "";
    if (Session["sHRUID"].ToString() == "")
    {
        string loggedOn = Request.ServerVariables["LOGON_USER"];
        loggedOn = loggedOn.ToUpper();
        Session["sHRUID"] = loggedOn.Replace("DOMAIN\\","");
    }
    if (Login1.UserName == loggedOn && Login1.Password == "admin")
        e.Authenticated = true;
}


But how can I authenticate the password?
Can anyone please help???

Many Thanks
Regards,


The only programmers that are better that C programmers are those who code in 1's and 0's Green Alien | [Alien]

Smile | :) Programm3r

My Blog: ^_^

AnswerRe: Authenticate Windows User Pin
Paddy Boyd27-Sep-07 3:18
Paddy Boyd27-Sep-07 3:18 
QuestionRe: Authenticate Windows User Pin
Programm3r27-Sep-07 3:45
Programm3r27-Sep-07 3:45 
AnswerRe: Authenticate Windows User Pin
Paddy Boyd27-Sep-07 3:48
Paddy Boyd27-Sep-07 3:48 
GeneralRe: Authenticate Windows User Pin
Programm3r27-Sep-07 4:13
Programm3r27-Sep-07 4:13 
Questionhow to check selected node child have not same name Pin
Piyush Vardhan Singh27-Sep-07 2:54
Piyush Vardhan Singh27-Sep-07 2:54 
AnswerRe: how to check selected node child have not same name Pin
Sonia Gupta27-Sep-07 3:07
Sonia Gupta27-Sep-07 3:07 
GeneralRe: how to check selected node child have not same name Pin
Malcolm Smart27-Sep-07 4:37
Malcolm Smart27-Sep-07 4:37 
AnswerRe: how to check selected node child have not same name Pin
Malcolm Smart27-Sep-07 4:41
Malcolm Smart27-Sep-07 4:41 
Questionuploading to server Pin
bhattiprolu27-Sep-07 2:52
bhattiprolu27-Sep-07 2:52 
Questioncalendar in popup window Pin
scicorp27-Sep-07 2:31
scicorp27-Sep-07 2:31 
AnswerRe: calendar in popup window Pin
varshavmane27-Sep-07 2:55
varshavmane27-Sep-07 2:55 
GeneralRe: calendar in popup window Pin
scicorp27-Sep-07 20:39
scicorp27-Sep-07 20:39 
GeneralRe: calendar in popup window Pin
Imran Khan Pathan28-Sep-07 0:12
Imran Khan Pathan28-Sep-07 0:12 
AnswerRe: calendar in popup window Pin
Vasudevan Deepak Kumar27-Sep-07 6:39
Vasudevan Deepak Kumar27-Sep-07 6:39 
Questiondialog box Pin
niki_nilu27-Sep-07 1:58
niki_nilu27-Sep-07 1:58 
AnswerRe: dialog box Pin
Sivan.G27-Sep-07 2:12
Sivan.G27-Sep-07 2:12 
GeneralRe: dialog box Pin
Sam Xavier27-Sep-07 6:19
Sam Xavier27-Sep-07 6:19 

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.