ServerVariables("LOGON_USER") reports a length greater than the characters displayed
- From: "Ryan" <ryan.d.rembaum@xxxxxx>
- Date: 18 Jan 2006 18:13:59 -0800
I am trying to figure out why
I am trying to use the result of Request.ServerVariables("LOGON_USER")
in a query in my aspx application. I want to use the server variable.
When I check the length of the string that this method returns
(len(Request.ServerVariables("LOGON_USER")) I get a number that is one
greater than the the number of characters that are displaying, which of
course causes a problem. Does anyone know why this is and how to fix
the problem. My only guess is that it is counting the slash even
though it does not display it...
e.g.
LOGIN: MyDomain\Ryan
Request.ServerVariables("LOGON_USER") = MyDomainRyan
len(Request.ServerVariables("LOGON_USER") = 13
len("MyDomainRyan") = 12
Thanks,
Ryan
.
- Follow-Ups:
- Prev by Date: RE: Asp:TreeView
- Next by Date: Re: How do I get from dynamic aspx to static html
- Previous by thread: Re: changing the asp.net development server port?
- Next by thread: Re: ServerVariables("LOGON_USER") reports a length greater than the characters displayed
- Index(es):
Relevant Pages
|