当前位置: 首页 > 图文教程 > 网络编程 > ASP.NET > asp.net生成静态页
public static bool WriteFile(string strText,string strContent,string strAuthor) 
{
string path = HttpContext.Current.Server.MapPath("/news/");
Encoding code = Encoding.GetEncoding("gb2312");
// 读取模板文件
string temp = HttpContext.Current.Server.MapPath("/news/text.html");
StreamReader sr=null;
StreamWriter sw
评论 (0) All