2009-06-07 97 views

回答

1

您可以使用RenderControl方法。
實施例:

TextBox t = new TextBox(); 
StringWriter stringWriter = new StringWriter(); 
HtmlTextWriter writer = new HtmlTextWriter(stringWriter); 
t.RenderControl(writer); 
return stringWriter.ToString(); 
相關問題