When the system prompts "the attribute cannot be 0, attribute ..."

xiaoxiao2021-03-06  65

When the system prompts "the attribute cannot be 0, attribute ..."

When I put the development of good WebPart to IMD.Test.Net/blog, an error appeared. The only value is suspicious, when I get the name of the creator, I use an array to get the table below (others are acquired by strings, the title, Item ["Title"], IT It is "text", but because the creation time and the creator name in this blog use the same name "Create", when I use Item [Creater "] to create time instead of the name, so I Use Item [4] to get the name of the creator). So, I registered this line of code from the source code. As a result, the error disappeared.

The wrong place has been found, but what is the reason, I think that after this variable gets the value, I have an operation of the name, because in Mediamake, ITEM [4] is 1; # Test / zhangsan, in order to look, I use str.substring (12, str.length-12) cut off the front part. By error analysis, this place is likely to be caused by the calculation process. So, I will display this value directly without intercepting operations, and the fact is that it is caused by interception operation.

More importantly, in Mediamake, the creator obtained is "Test / Zhangsan" in the form of domain account, but on this site is "Zhang San" named Chinese name, the blame will be wrong.

why?

I didn't verify it, it is estimated because I have a complete user profile on this site, so I can directly identify the Chinese name of the user.

转载请注明原文地址:https://www.9cbs.com/read-111068.html

New Post(0)