javascript - Null character ('\0') causes problems with updatepanel -


i have, odd problem. receive data many different applications within our company , display data on website. data may have odd characters within string depending on system sent data. problem have table users can search through allow has data in it, if try , put table within updatepanel program throws javascript exceptions. specific error receive is:

microsoft jscript runtime error: sys.webforms.pagerequestmanagerparsererrorexception: message received server not parsed.

i have traced error down fact of information contains null characters in it. example record may "\0\0 message : \0\0" can parse null characters out, boss says not acceptable solution. question is, there anyway keep update panel throwing exceptions without manipulating data?

you can try , hope solve problem

string str = null; if (string.isnullorwhitespace(str)) {     response.write("value null"); } 

this isnullorwhitespace function returns true or false value, can check before assigning null value variable.....


Comments