.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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -