.net - The method HtmlDecode has invalid arguments? -
hi using richeditor . editor saves span , style in table . so, using following method avoid this: htmldecode(databinder.eval(container.dataitem, "imagedesc"))
but giving error like:
htmlcode has invalid arguments
how can solve .the c# code is:
public string htmldecode(string strvalue) { string functionreturnvalue = null; try { functionreturnvalue = server.htmldecode(strvalue); } catch (exception exc) { // processmoduleloadexception(this, exc); } return functionreturnvalue; }
could strvalue null? try adding null test. if it's null, replace empty string.
Comments
Post a Comment