View Single Post
Old 09-07-2012, 03:47 AM   PM User | #1
S_henry
New to the CF scene

 
Join Date: Sep 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
S_henry is an unknown quantity at this point
How to handle \x

Hi guys. I'm using "<%= SPContext.Current.Web.CurrentUser.LoginName %>" in Javascript function in my aspx page to get the current logged in user ID. So it will return the value like "domain\john". But the problem is when the user ID is started with character x or u (eg domain\xia), the page is getting error. Can anybody has any idea on how to handle this error? Thanks in advance.
S_henry is offline   Reply With Quote