2012-06-27 4 views
0

안녕하세요, RichEditor를 사용하고 있습니다. 이 편집기는 스팬과 스타일을 테이블에 저장합니다. 그래서,이 방지하기 위해 다음과 같은 방법을 사용하고 있습니다 : HtmlDecode(DataBinder.Eval(Container.DataItem, "ImageDesc"))HtmlDecode 메서드에 잘못된 인수가 있습니까?

을하지만 같은 그주는 오류 :

HtmlCode는

이 국지적 인 C# 코드는 내가 해결할 수있는 방법 몇 가지 잘못된 인수가 :

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

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

답변

0

strValue를 Null로 설정할 수 있습니까? 널 (null) 테스트를 추가하십시오. null 인 경우 빈 문자열로 바꿉니다.

관련 문제