C#.net如何生成静态页带母板的那种 using (WebClient web = new WebClient()) { web.Credentials = CredentialCache.DefaultCredentials;//获取或设置用于对向Internet资源的请求进行身份验证的网络凭据。 Byte[] pageData = web.DownloadData(this._host+"/"+this._DynamicPath);//获取动态页面内容 string pageHtml = System.Text.Encoding.GetEncoding("gb2312").GetString(pageData); } ..... using (StreamWriter swr = new StreamWriter(strPhysicsPath, false, System.Text.Encoding.GetEncoding("gb2312"))) { //创建静态页面文件,GB2312格式 swr.Write(pageHtml); swr.Close(); }