日期:2014-05-18 浏览次数:20523 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>{##title##} </title>
<link rel="stylesheet" type="text/css" href="../../css/css.css" />
<link rel="stylesheet" type="text/css" href="../../css/index.css" />
</head>
<body>
<div style="width:1002px; margin:auto;">
<iframe scrolling="no" width="1002px" height="132px" src="../../UserControl/newsheader.aspx" frameborder="0"> </iframe> </div>
<div style="width:1002px; margin:auto;"> <img src="../../images/xwzx_02.gif" /> </div>
<div id="newsshow">
<div class="news_nr">
<div style="font-family:'宋体'; font-size:16px; font-weight:bold; color:#FFFFFF; text-align:center">{##title##} </div>
<div style="font-family:'宋体'; margin-top:6px; margin-bottom:6px; font-size:12px; color:#FFFFFF; text-align:center">{##time##} </div>
<div style="font-family:'宋体'; margin-top:6px; margin-bottom:6px; font-size:12px; color:#FFFFFF; margin:6px 200px;">{##text##} </div>
</div>
</div>
<div id="Banquan"> ©2007-2008 </div>
</body>
</html>
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
/// <summary>
/// 生成静态页面类
/// </summary>
public class StaticHtml
{
/// <summary>
/// 新闻标题
/// </summary>
private string _title = "这里是标题的内容";
/// <summary>
/// 新闻内容
/// </summary>
private string _content = "暂无内容";
/// <summary>
/// 新闻上传时间
/// </summary>
private string _time = "";
/// <summary>
/// 生成的文件的保存路径;
/// </summary>
private string _path = "htmlpath";
/// <summary>
/// 返回静态页的地址
/// </summary>
private string _htmlPath;
/// <summary>
/// 返回消息
/// </summary>
private string _msg;
/// <summary>
/// 新闻标题
/// </summary>
public string Title
{
set
{
_title = value;
}
get
{
return _title;
}
}
/// <summary>
/// 新闻内容
/// </summary>
public string Content
{
set
{
_content = value;
}
get
{
return _content;
}
}
/// <summary>
/// 新闻上传时间
/// </summary>
public string Time
{
set
{
_time = value;
}
get
{
return _time;
}
}
/// <summary>
/// 生成的文件的保存路径;
/// </summary>
public string Path
{
set
{
_path = value;
}
get