我在做一个asp.net网站的客户资料的页面的时候,需要读写缓存,可老报错,代码如下:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;using System.Data.OleDb;
namespace Web2
{
/// <summary>
/// customer 的摘要说明。
/// </summary>
public class customer : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.Label Label2;
protected System.Web.UI.WebControls.Label Label3;
protected System.Web.UI.WebControls.Label Label4;
protected System.Web.UI.WebControls.Label Label5;
protected System.Web.UI.WebControls.Label Label6;
private  OleDbConnection con=new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;" +
@"Data source= C:\Inetpub\wwwroot\Web2\db\mdb.mdb");
public OleDbDataReader dr;
//public OleDbCommand mycmd;
public string c_name;
public string c_birth;
public string c_tel;
public string c_mail;
public string c_add;
public HttpCookie readcookie;
public string Postuser;
public string Action;
public string UserName;
public int check=0;


private void Page_Load(object sender, System.EventArgs e)
{

UserName=Request.Querystring["UserName"].ToString();
Action=Request.QueryString["Action"].ToString();

UserName=UserCheck(); 
if (UserName=="Wrong"&&Action!="reg")
{
Response.Redirect("Exception.aspx?ms=1");
}



con.Open();
OleDbCommand mycmd=new OleDbCommand("select * from customer where u_id='"+index.UserName+"'",con);

dr=mycmd.ExecuteReader();
while(dr.Read())
{
c_name =dr["c_name"].ToString();
c_birth=dr["c_birth"].ToString();
c_tel=dr["c_tel"].ToString();
c_mail=dr["c_mail"].ToString();
c_add=dr["c_add"].ToString();
}
dr.Close();
this.Label2.Text=c_name;
this.Label3.Text=c_birth;
this.Label4.Text=c_tel;
this.Label5.Text=c_mail;
this.Label6.Text=c_add;
con.Close(); // 在此处放置用户代码以初始化页面
}
public string UserCheck()
{
if (Request.Cookies["Cookie"]==null)
{
return("Wrong");
}   
else
{
readcookie = Request.Cookies["Cookie"];
if  (readcookie.Values["UserName"].ToString()!=null)
{ Postuser= readcookie.Values["UserName"].ToString();
//Pass= readcookie.Values["Pass"].ToString();
return(Postuser);
}
else
{
return("Wrong");

} } #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{    
this.Load += new System.EventHandler(this.Page_Load); }
#endregion
}
}
提示出错:
C:\Inetpub\wwwroot\Web2\customer.aspx.cs(49): “System.Web.HttpRequest”并不包含对“Querystring”的定义请教各位高手解答: