Click here to Skip to main content
15,902,445 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert to C# code Pin
Programm3r13-Nov-07 18:29
Programm3r13-Nov-07 18:29 
QuestionDatetime Problem Pin
Navneet Hegde13-Nov-07 3:10
Navneet Hegde13-Nov-07 3:10 
AnswerRe: Datetime Problem Pin
Laoujin13-Nov-07 4:03
Laoujin13-Nov-07 4:03 
QuestionFinding currently logged on user Pin
conor2013-Nov-07 2:52
conor2013-Nov-07 2:52 
AnswerRe: Finding currently logged on user Pin
Justin Perez13-Nov-07 3:09
Justin Perez13-Nov-07 3:09 
AnswerRe: Finding currently logged on user Pin
Vasudevan Deepak Kumar13-Nov-07 20:32
Vasudevan Deepak Kumar13-Nov-07 20:32 
GeneralRe: Finding currently logged on user Pin
conor2015-Nov-07 4:55
conor2015-Nov-07 4:55 
GeneralRe: Finding currently logged on user Pin
conor2016-Nov-07 0:32
conor2016-Nov-07 0:32 
I've run into a problem...

I used

String username = System.Security.Principal.WindowsIdentity.GetCurrent().Name;

to get the username. And this works fine when accessing the webpage if it's on my own computer but when I publish the site and access it from anywhere else, it returns “NT AUTHORITY\NETWORK SERVICE” for the username.

Is there any way to have this work for people accessing the site from somewhere else as well?

Thanks,
Conor.
QuestionExport File Pin
MumbleB13-Nov-07 2:44
MumbleB13-Nov-07 2:44 
AnswerRe: Export File Pin
duncanmhor13-Nov-07 2:56
duncanmhor13-Nov-07 2:56 
AnswerRe: Export File Pin
SVb.net13-Nov-07 5:51
SVb.net13-Nov-07 5:51 
QuestionHow to control forecolor of a disabled label Pin
baelzaden13-Nov-07 1:39
baelzaden13-Nov-07 1:39 
Questionfile rename application Pin
Sunil Wise13-Nov-07 1:18
professionalSunil Wise13-Nov-07 1:18 
Questionadd column to datagridview Pin
arkiboys13-Nov-07 1:15
arkiboys13-Nov-07 1:15 
AnswerRe: add column to datagridview Pin
arkiboys13-Nov-07 2:40
arkiboys13-Nov-07 2:40 
QuestionDynamically Binding Data to a Label Pin
sindhutiwari13-Nov-07 1:14
sindhutiwari13-Nov-07 1:14 
QuestionAddPrinterConnection failing to add network printer Pin
ekynox13-Nov-07 0:52
ekynox13-Nov-07 0:52 
AnswerRe: AddPrinterConnection failing to add network printer Pin
ekynox15-Nov-07 9:44
ekynox15-Nov-07 9:44 
QuestionDynamic controls in web Pin
M. J. Jaya Chitra13-Nov-07 0:45
M. J. Jaya Chitra13-Nov-07 0:45 
Questionvs2005, I need to connect data source using c# Pin
kkooring13-Nov-07 0:28
kkooring13-Nov-07 0:28 
QuestionXMLDocument.GetElementsByTagName returns comments ! Pin
N a v a n e e t h13-Nov-07 0:16
N a v a n e e t h13-Nov-07 0:16 
AnswerRe: XMLDocument.GetElementsByTagName returns comments ! Pin
Sun Rays13-Nov-07 0:27
Sun Rays13-Nov-07 0:27 
QuestionDoes C# provide all the functionalities of WinPcap? Pin
Diana Fernandez12-Nov-07 23:37
Diana Fernandez12-Nov-07 23:37 
QuestionSetting Print Job Parameters Pin
edgar_raj12-Nov-07 23:33
edgar_raj12-Nov-07 23:33 
AnswerRe: Setting Print Job Parameters Pin
Vasudevan Deepak Kumar13-Nov-07 20:34
Vasudevan Deepak Kumar13-Nov-07 20:34 

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.