Click here to Skip to main content
15,921,884 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: help needed + web services Pin
Stephan Pilz21-Sep-06 21:00
Stephan Pilz21-Sep-06 21:00 
QuestionGridview sorting Pin
#realJSOP21-Sep-06 6:32
professional#realJSOP21-Sep-06 6:32 
AnswerRe: Gridview sorting Pin
Naveed Kamboh21-Sep-06 6:49
Naveed Kamboh21-Sep-06 6:49 
AnswerRe: Gridview sorting Pin
Member 9621-Sep-06 10:53
Member 9621-Sep-06 10:53 
Questionredirect problem in form authentication Pin
homersim21-Sep-06 4:55
homersim21-Sep-06 4:55 
AnswerRe: redirect problem in form authentication Pin
minhpc_bk21-Sep-06 20:55
minhpc_bk21-Sep-06 20:55 
Questionusername in a domain to show in textbox? Pin
zarkan21-Sep-06 4:40
zarkan21-Sep-06 4:40 
AnswerRe: username in a domain to show in textbox? Pin
Kschuler21-Sep-06 6:38
Kschuler21-Sep-06 6:38 
This bit of code (visual studio 2005) will retrieve the logged in user name:
My.User.Name

I'm sure VS2003 and VB6 can accomplish this too, but you'll have to search for the actual syntax.

You could also store the user name in a cookie that gets saved on the computer. This would remember the last person who logged into the asp.net page on that computer, instead of whom ever is currently logged in... Code would look something like this:

'To Set the Cookie:
Response.Cookies("UniqueCookieName").Value = txtUserName.Text
Response.Cookies("UniqueCookieName").Expires = Now.AddYears(50)

'To Retrieve the cookie:
If Not Request.Cookies("UniqueCookieName") Is Nothing Then
    txtUserName.Text = Request.Cookies("UniqueCookieName").Value
End If


Hope this helps.
QuestionRegarding the Session Pin
tmiku21-Sep-06 3:33
tmiku21-Sep-06 3:33 
AnswerRe: Regarding the Session Pin
Not Active21-Sep-06 3:53
mentorNot Active21-Sep-06 3:53 
AnswerRe: Regarding the Session Pin
Sathesh Sakthivel21-Sep-06 4:17
Sathesh Sakthivel21-Sep-06 4:17 
AnswerRe: Regarding the Session Pin
Kschuler21-Sep-06 6:43
Kschuler21-Sep-06 6:43 
AnswerRe: Regarding the Session Pin
Britney S. Morales21-Sep-06 6:43
Britney S. Morales21-Sep-06 6:43 
QuestionRegarding the Session(urgent) Pin
tmiku21-Sep-06 3:33
tmiku21-Sep-06 3:33 
QuestionCreateUserWizard Pin
cisco210321-Sep-06 3:05
cisco210321-Sep-06 3:05 
AnswerRe: CreateUserWizard Pin
minhpc_bk21-Sep-06 20:56
minhpc_bk21-Sep-06 20:56 
QuestionHow to add rows dynamically in datagrid Pin
Ph@ntom21-Sep-06 3:04
Ph@ntom21-Sep-06 3:04 
AnswerRe: How to add rows dynamically in datagrid Pin
_AK_21-Sep-06 18:24
_AK_21-Sep-06 18:24 
QuestionDataList problem Pin
papa8021-Sep-06 2:53
papa8021-Sep-06 2:53 
QuestionValidation on Telephone No. in javascript Pin
Suresh Pirsquare21-Sep-06 1:37
Suresh Pirsquare21-Sep-06 1:37 
AnswerRe: Validation on Telephone No. in javascript Pin
Vicky Roberts21-Sep-06 2:30
Vicky Roberts21-Sep-06 2:30 
GeneralRe: Validation on Telephone No. in javascript Pin
Suresh Pirsquare21-Sep-06 2:33
Suresh Pirsquare21-Sep-06 2:33 
Questionasp.net question abou session creation in C# asp.net Pin
Deepak the Cool21-Sep-06 1:00
Deepak the Cool21-Sep-06 1:00 
AnswerRe: asp.net question abou session creation in C# asp.net Pin
Britney S. Morales21-Sep-06 3:38
Britney S. Morales21-Sep-06 3:38 
Questionsource code for asp.net datagrid deletecommand event in C# Pin
vijay258321-Sep-06 0:56
vijay258321-Sep-06 0:56 

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.