ServerVariables("LOGON_USER") reports a length greater than the characters displayed



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

.



Relevant Pages

  • Group Column
    ... I have a query that list three different items for each row so it ends up ... displaying the row three times in order to see all three items in the one ... Tony ... Prev by Date: ...
    (microsoft.public.access.queries)
  • Combo box
    ... want a query to pop up displaying all the selected records and the rest ... What am I missing? ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • Re: Help with blank form
    ... >are there in the design view but that is it. ... This usually means that the Form is based on a Query which a) ... explain what the form should be displaying. ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)
  • Access List Box Size Limits
    ... I am displaying a list box in a form that runs off a query, ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: DDE Connection
    ... the database is displaying something other than the default text in Access's title bar ... open the database if it is not already open. ... Access database works fine, where I'm able to open the query through the "open source" within the mail merge function of Word, but When I try to do the same exact steps with our Production Access database I get the following error. ... I'm running a Dell optiplex 745 machine with Windows XP sp2 and using Microsoft Word 2000 sp3 and trying to connect to a query in Microsoft Access ...
    (microsoft.public.word.mailmerge.fields)