/// <summary>
/// 访问页面的基类
/// by 贾世义 2011-8-28
/// </summary>
public class BaseWWW : Page
{
#region 变量和字段
/// <summary>
/// 替代Page.Request.QueryString
/// </summary>
protected NameValueCollection QueryString;
/// <summary>
/// 重载OnLoad排除注入代码和处理
/// </summary>
/// <param name="e"></param>
protected override void OnLoad(EventArgs e)
{
QueryString = new NameValueCollection();
//排除注入代码
for (int i = 0; i < Page.Request.QueryString.Count; i++)
{
string key = Page.Request.QueryString.Keys[i];
QueryString.Add(key, Page.Request.QueryString[key].Replace(" ", "").Replace("(", "").Replace(")", "").Replace("'", "").Replace("'", ""));
}
base.OnLoad(e);
}
}
欢迎访问:http://121.18.78.216 适易查询分析、工作流、内容管理及项目管理演示平台