G
Guest
Hi Folks,
I am trying to parse out a string which contains the User.Identity.Name
which results in something like mydomain\me. So when I do somethong like
trying to find where the backslash is by:
suser = User.identity.Name
iPos = sUser.LastIndexOf(@"\",1)
It never finds the backslash! If I set sUser = @"mydomain/me" it works fine,
but the user name comes from User.Identity.Name and I cannot seem to get the
@ sign prepended so that it works correctly.
Hope you cna help
I am trying to parse out a string which contains the User.Identity.Name
which results in something like mydomain\me. So when I do somethong like
trying to find where the backslash is by:
suser = User.identity.Name
iPos = sUser.LastIndexOf(@"\",1)
It never finds the backslash! If I set sUser = @"mydomain/me" it works fine,
but the user name comes from User.Identity.Name and I cannot seem to get the
@ sign prepended so that it works correctly.
Hope you cna help