|
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.
|