In any case, if you're using Windows authentication, you can use
System.Web.HttpContext.Current.User.Identity.Name, but I think if you're
using other authentication modes, you'll have to get it from
System.Web.HttpContext.Current.Request.ServerVariables["AUTH_USER"]. Both
will give you DOMAIN\LANID, so you'll have to parse out just the LAN Id if
that's all you need.
keep me posted if u still have issues.....
==============================
S.Ramanujam
Programmer Analyst
Cognizant Technology Solutions (p) Ltd. - CTS
38 & 39 Whites Road,
WCB - Whites Road Circular Building
Royapettah, Chennai - 600014
Ph : +xx xx xxx xxxx Extn 5113 [Off]
: +xx xx xxx xxxx [Res]
-----Original Message-----
From: Robert Sindall [mailto:rsindall@z...]
Sent: Monday, September 16, 2002 4:21 PM
To: pro_VB_dotnet
Subject: [pro_vb_dotnet] Extended the Context.User.Identity Class
Hi
Currently the:
Context.User.Identity
class has AuthType, IsAuth and Name
how can i extended this to have an ID and other elements ?
thanks
Robert
---
Visual Basic .NET Text Manipulation Handbook
The .NET Framework brings a variety of string manipulation features
to the VB language, and some of these, namely regular expressions
and the StringBuilder class, are something VB 6 developers may not
have seen before. This book teaches you how to manipulate text using
these string matching, manipulation, and replacement classes. Issues
such as Localization and data conversion will also be investigated.
http://www.wrox.com/ACON11.asp?ISBN=1861007302