ASP.NET模版生成HTML静态页面方案1: 代码如下: /// < summary> /// 传入URL返回网页的html代码 /// < /summary> /// < param name=”Url”>URL< /param> /// < returns>< /returns> public static string getUrltoHtml(string Url) { errorMsg = “”; try { System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url); // Get the response in