Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net HtmlDecode方法具有无效参数?_.net - Fatal编程技术网

.net HtmlDecode方法具有无效参数?

.net HtmlDecode方法具有无效参数?,.net,.net,嗨,我正在使用RichEditor。此编辑器将跨度和样式保存在表中。 所以,我使用以下方法来避免这种情况:HtmlDecodeDataBinder.EvalContainer.DataItem,ImageDesc 但其给出的错误如下: HtmlCode有一些无效参数 如何解决这个问题。c代码是: public string HtmlDecode(string strValue) { string functionReturnValue = null; tr

嗨,我正在使用RichEditor。此编辑器将跨度和样式保存在表中。 所以,我使用以下方法来避免这种情况:HtmlDecodeDataBinder.EvalContainer.DataItem,ImageDesc

但其给出的错误如下:

HtmlCode有一些无效参数

如何解决这个问题。c代码是:

public string HtmlDecode(string strValue)
    {
        string functionReturnValue = null;
        try
        {
            functionReturnValue = Server.HtmlDecode(strValue);

        }
        catch (Exception exc)
        {
           // ProcessModuleLoadException(this, exc);
        }
        return functionReturnValue;
    }

strValue可以为Null吗?尝试添加一个空测试。如果为null,则替换为空字符串