以上的我也是这样做的,我就是实现不了,铲铲我的方式就是:COOKIE和SESSION,C#和VB里运行,我做过了一些操作,由于技术好,所以实现不了,麻烦你再看一下,我发代码出来。如果你有更好的方法,麻烦你发代码给我
tc.asps代码
//c#下程序等Tv.aspx来读取
Session["abc"]="eric";//定义SESSION
//定义COOKIE
HttpCookie UserCookie = new HttpCookie("king");
UserCookie["name"]="kong"; //赋值kong
UserCookie["cdma"]="gd";
UserCookie.Expires=DateTime.Now.AddDays(1);//这里设置要保存多长时间.
Response.Cookies.Add(UserCookie);
//读取tv.aspx SESSION和COOKIE值
//读取SESSION值
if (Session["tvtest"] != null)
{txt.Text = Session["tvtest"].ToString();}
else{txt.Text = "空值";}
//读取COOKIE值
HttpCookie cookie=Request.Cookies["Visited"];
cok.Text=cookie.Values["Name"]; //用label输出COOKIE
tv.aspx代码如下
'读取tc.asp,SESSion和COOKIE值
Lia.Text = Session("abc") '读取SESSion值
'读取tc.asp COOKIE值
Dim testCookie As New HttpCookie("king")
Response.Write(Request.Cookies("king").Name) '输出
'定义SESSION值等TC.aspx来读取
Session("tvtest") = "test" '定义SEESION
'定义COOKIE
Dim tCookie As New HttpCookie("Visited")
tCookie.Value = DateTime.Now.ToString
tCookie.Name = "HIcook"
tCookie.Expires = DateTime.Now.AddDays(7)
tCookie.Domain = "builder.com"
Response.Cookies.Add(tCookie)