R
Ryan
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
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