想问一下如何用asp.net像asp一样的输出字段保存到cookies中

来源:百度知道 编辑:UC知道 时间:2024/06/27 18:11:00
String cmdtext111 = "select * from useradmin where username='" + TextBox1.Text.ToString() + "' ";
SqlDataAdapter da111 = new SqlDataAdapter(cmdtext111, myConnection);
DataSet data111 = new DataSet();
da111.Fill(data, "contents");
dr111 = data.Tables["contents"].Rows[0];

Response.Cookies["useradmin"]["useradminname"] = TextBox1.Text.ToString();'我想用这个cookies保存刚查询数据库里面的shopid这个字段的值怎么做呀/?
//Response.Cookies["useradmin"]["u"] = System.Web.HttpUtility.UrlEncodeUnicode(usernc.ToString());}

Response.Redirect("../shopbiz/index.aspx");

1.We have day and night and the four seasons because of the movement of the earth as it spins in space.
2. We have day and night so we know when to go to sleep.
3. The earth moves around the sun once every 365 and a quarter days.
4. The sun rises in the east and sets in the west.
5. The sun is at its highest point at midday.