asp.net生成静态页[1]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

//生成HTML页
  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
=null;
   
string str="";  
   
try
本文关键:asp.net生成静态页
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top