235 reputation
113
bio website
location China
age
visits member for 2 years, 1 month
seen 21 hours ago

Jan
17
comment View sharepoint list last modified date using javascript
@TomasE You can open firebug, click the "Script" tab, and choose your js file (or page that contains the script) in the dropdown list, then click at where you want to debug (on the line number). Then hover or refresh the page (it depends on how you execute the script) to trigger the breakpoint.
Jan
17
comment View sharepoint list last modified date using javascript
@TomasE Hello, what is the error message? And I also have 2 questions, first, if you set a break point at ctx.executeQueryAsync, will it stop at here? Second, can you set a break point in query failed function (you can give the function two parameters so you can track the request information from the parameters)? What's the error you get?
Jan
17
answered View sharepoint list last modified date using javascript
Jan
9
awarded  Popular Question
Jan
9
comment How to debug this error when accessing host web from a app
@Larsi You're welcome, I'm glad it solves your problem.
Jan
8
awarded  Yearling
Jan
8
answered How to debug this error when accessing host web from a app
Nov
26
asked How to check if current user belongs to “All Users (windows)/All Users (membership)/All Authenticated Users”?
Nov
7
awarded  Popular Question
Nov
4
awarded  Caucus
Jun
13
awarded  Popular Question
Jun
13
awarded  Self-Learner
May
31
awarded  Citizen Patrol
May
31
awarded  Commentator
May
31
comment How to know the exact loginname of the user who operates as system account?
Thanks, but it needs a correct loginname, in my situation, HttpContext.Current.User.Identity.Name returns "0#.w|domain\user", which should be "i:0#.w|domain\user" actually. Do you know why? And SPContext.Current.Web.CurrentUser.LoginName returns "sharepoint\system", which can not be decoded.
May
31
revised How to know the exact loginname of the user who operates as system account?
added 72 characters in body
May
30
comment How to know the exact loginname of the user who operates as system account?
Thanks for your answer, but if current user operates as system account, the loginname is "sharepoint\system", your code will throw exception.
May
30
revised How to know the exact loginname of the user who operates as system account?
added 42 characters in body
May
30
comment How to know the exact loginname of the user who operates as system account?
@RobertLindgren Thanks for your information. It comes from a bug in our testing, we created an audience, and its rule is "Account Name = domain/currentuser", so if current user operates as system account, AudienceManager.IsMemberOfAudience will returns false, but it should return true actually. So, that's why I asked the question.
May
30
asked How to know the exact loginname of the user who operates as system account?