Click here to Skip to main content
15,908,445 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Remove a QueryString Pin
nxde200014-Mar-07 20:31
nxde200014-Mar-07 20:31 
QuestionSending a value to a user control Pin
digsy_14-Mar-07 13:07
digsy_14-Mar-07 13:07 
AnswerRe: Sending a value to a user control Pin
N a v a n e e t h14-Mar-07 18:41
N a v a n e e t h14-Mar-07 18:41 
GeneralRe: Sending a value to a user control Pin
digsy_15-Mar-07 2:09
digsy_15-Mar-07 2:09 
Questionfile reading Pin
shawn41414-Mar-07 11:50
shawn41414-Mar-07 11:50 
AnswerRe: file reading Pin
kubben14-Mar-07 11:56
kubben14-Mar-07 11:56 
Questionvalidating registration image Pin
shawn41414-Mar-07 11:25
shawn41414-Mar-07 11:25 
QuestionUser name is blank in Login Page Pin
subhsam14-Mar-07 10:26
subhsam14-Mar-07 10:26 
Hi all,

Iam using form authentication in my web app. After user login i want to redirect depends on user info.
My problem is :

User.Identity.name is blank in login page but its working fine in other page.

Forms Authentication in web.config file


<authentication mode="Forms">



<forms name="Authcookie" loginurl="LogIn.aspx" protection="All">




private

void btnlogin_Click(object sender, System.EventArgs e)
{ if(checking User credentials)


{ Id=somevalue;
FormsAuthentication.SetAuthCookie(Id.ToString(),false);

Response.Write(User.Identity.Name.ToString());

//Response.Write(Context.User.Identity.Name.ToString());

}
}

pls help me...
AnswerRe: User name is blank in Login Page Pin
subhsam15-Mar-07 9:01
subhsam15-Mar-07 9:01 
Questionwriting to the database Pin
samwisethegreat14-Mar-07 10:00
samwisethegreat14-Mar-07 10:00 
AnswerRe: writing to the database Pin
kubben14-Mar-07 12:05
kubben14-Mar-07 12:05 
QuestionRe: writing to the database Pin
samwisethegreat15-Mar-07 1:05
samwisethegreat15-Mar-07 1:05 
AnswerRe: writing to the database Pin
kubben15-Mar-07 1:38
kubben15-Mar-07 1:38 
QuestionASP.NET Exporting to Excel w/ Color Pin
shinkentb14-Mar-07 8:12
shinkentb14-Mar-07 8:12 
QuestionPLease, i need your help Pin
Ahmed EL Gendy14-Mar-07 6:18
Ahmed EL Gendy14-Mar-07 6:18 
AnswerRe: PLease, i need your help /using C# Pin
Naveed Kamboh14-Mar-07 7:26
Naveed Kamboh14-Mar-07 7:26 
AnswerRe: PLease, i need your help Pin
ToddHileHoffer14-Mar-07 9:28
ToddHileHoffer14-Mar-07 9:28 
AnswerRe: PLease, i need your help Pin
Guffa14-Mar-07 14:36
Guffa14-Mar-07 14:36 
Questionanother help again..sorry 4 disturbing Pin
blitz2bleach14-Mar-07 6:03
blitz2bleach14-Mar-07 6:03 
QuestionDrag & Drop table columns Pin
Marwa Bahaa14-Mar-07 5:46
Marwa Bahaa14-Mar-07 5:46 
AnswerRe: Drag & Drop table columns Pin
ToddHileHoffer14-Mar-07 8:22
ToddHileHoffer14-Mar-07 8:22 
QuestionHow to get System.Web.UI.WebControls.Calendar SelectedDate using JavaScript Pin
Old Gun14-Mar-07 5:23
Old Gun14-Mar-07 5:23 
AnswerRe: How to get System.Web.UI.WebControls.Calendar SelectedDate using JavaScript Pin
badgrs14-Mar-07 5:56
badgrs14-Mar-07 5:56 
QuestionAffiliate program Script Pin
Naveed Kamboh14-Mar-07 5:11
Naveed Kamboh14-Mar-07 5:11 
QuestionGridView binding problem Pin
EnigmaRulez14-Mar-07 4:52
EnigmaRulez14-Mar-07 4:52 

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.