可以自动读取模板文件后,生成   当前 年/月/日/yyMMddhhmmss.html

代码如下

C#

 1一个自动生成html的类private bool  CreateHtml(string strText,string strContent,string strAuthor)
 2
 html页代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 
<head>
  
<title>ShowArticle</title>

 
</head>
 
<body>
  biaoti
  
<br>
  content
<br>
  author
 
</body>
</html>

相关文章: