my code id:
public void ShowEditor()
{
CuteEditor.Editor Editor1 = new CuteEditor.Editor();
Editor1.ID = "Editor1";
System.Text.StringBuilder sb = new System.Text.StringBuilder();
System.IO.StringWriter sw = new System.IO.StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
Editor1.RenderControl(htw);
string str = sb.ToString();
Response.Write(str);
}
when run,a error in Editor1.RenderControl(htw);mean:nullreferenceexception.
please tell me the right code!
thank very much!