.net HtmlDecode方法具有无效参数?
嗨,我正在使用RichEditor。此编辑器将跨度和样式保存在表中。 所以,我使用以下方法来避免这种情况:HtmlDecodeDataBinder.EvalContainer.DataItem,ImageDesc 但其给出的错误如下: HtmlCode有一些无效参数 如何解决这个问题。c代码是:.net HtmlDecode方法具有无效参数?,.net,.net,嗨,我正在使用RichEditor。此编辑器将跨度和样式保存在表中。 所以,我使用以下方法来避免这种情况:HtmlDecodeDataBinder.EvalContainer.DataItem,ImageDesc 但其给出的错误如下: HtmlCode有一些无效参数 如何解决这个问题。c代码是: public string HtmlDecode(string strValue) { string functionReturnValue = null; tr
public string HtmlDecode(string strValue)
{
string functionReturnValue = null;
try
{
functionReturnValue = Server.HtmlDecode(strValue);
}
catch (Exception exc)
{
// ProcessModuleLoadException(this, exc);
}
return functionReturnValue;
}
strValue可以为Null吗?尝试添加一个空测试。如果为null,则替换为空字符串