将aspx转化为html代码,达到复用的效果
StringWriter writer = new StringWriter(); Server.Execute("Staff.aspx", writer); String html = writer.ToString();Response.Write(html);