📜  asp.net 获取 div 的 innerhtml - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:18.527000             🧑  作者: Mango

代码示例1
var sb = new StringBuilder();
mainDiv.RenderControl(new HtmlTextWriter(new StringWriter(sb)));

string s = sb.ToString();