Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: VB replace function Pin
Aaron Eldreth7-Sep-04 5:13
Aaron Eldreth7-Sep-04 5:13 
GeneralRe: VB replace function Pin
Colin Angus Mackay7-Sep-04 5:20
Colin Angus Mackay7-Sep-04 5:20 
GeneralRe: VB replace function Pin
Aaron Eldreth7-Sep-04 5:48
Aaron Eldreth7-Sep-04 5:48 
GeneralLocking the keyboard on XP using .NET Pin
Innovathis6-Sep-04 5:13
Innovathis6-Sep-04 5:13 
GeneralRe: Locking the keyboard on XP using .NET Pin
Heath Stewart6-Sep-04 9:35
protectorHeath Stewart6-Sep-04 9:35 
GeneralFirst of all thanks for your reply! Pin
Innovathis6-Sep-04 20:46
Innovathis6-Sep-04 20:46 
GeneralRetieve currenlty logged user details Pin
Manju.K.J6-Sep-04 4:43
Manju.K.J6-Sep-04 4:43 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart6-Sep-04 9:31
protectorHeath Stewart6-Sep-04 9:31 
You can't retrieve the password, unless a network administrator has stupidly enabled plain-text passwords, and that's only for support very old legacy systems. If you could retrieve the password, what's stopping a cracker?

You can retrieve the username but how you do that depends on the context. In ASP.NET if user impersonation and Windows authentication is enabled, you can use the User property you'll find on the Page class and on other classes. This retrieves the IPrincipal, from which you can get an IIdentity that defines the Name property.

Using SharePoint, this would work because SharePoint defaults to NTLM authentication (IIRC, that's all it supports). You shouldn't have to re-authenticate the user, either, so long as the authentication request is to the same domain or forest in an Active Directory network (depending on the network setup).

If you use Kerberos authentication, this authentication should be transparent as well within the same network or forest, depending on the trust model implemented.

It's best you talk to your network administrator to figure out what's possible on your network.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J7-Sep-04 0:30
Manju.K.J7-Sep-04 0:30 
GeneralRe: Retieve currenlty logged user details Pin
Heath Stewart7-Sep-04 6:24
protectorHeath Stewart7-Sep-04 6:24 
GeneralRe: Retieve currenlty logged user details Pin
Manju.K.J13-Sep-04 1:27
Manju.K.J13-Sep-04 1:27 
QuestionTo Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Al Gardner6-Sep-04 3:28
Al Gardner6-Sep-04 3:28 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
mav.northwind6-Sep-04 4:16
mav.northwind6-Sep-04 4:16 
AnswerRe: To Dock or not to Dock? Whether tis nobler to Anchor instead? Pin
Heath Stewart6-Sep-04 9:40
protectorHeath Stewart6-Sep-04 9:40 
GeneralAutoScroll Puzzle Pin
Paul Griffin6-Sep-04 3:08
Paul Griffin6-Sep-04 3:08 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart6-Sep-04 10:00
protectorHeath Stewart6-Sep-04 10:00 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin6-Sep-04 23:25
Paul Griffin6-Sep-04 23:25 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:27
protectorHeath Stewart7-Sep-04 6:27 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:38
Paul Griffin7-Sep-04 6:38 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:42
protectorHeath Stewart7-Sep-04 6:42 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin8-Sep-04 1:14
Paul Griffin8-Sep-04 1:14 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:46
Paul Griffin7-Sep-04 6:46 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:14
caspernjk6-Sep-04 2:14 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:07
caspernjk6-Sep-04 2:07 
GeneralRe: find the shortest path between two mouse clicks Pin
pxp6-Sep-04 3:54
pxp6-Sep-04 3:54 

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.