如果要存储用户的资料,我们可以使用下面的代码:
Response.Cookies[“username’].Value=username;
获取Cookies的值
if (Request.Cookies[“username”]!=null)
lbMessage.text=”Dear “+Request.Cookies[“username”].Value+”, Welcome shopping here!”;
else
lbMessage.text=”Welcome shopping here!”;
文章介绍了如何在Web开发中使用Response.Cookies来存储用户资料,如username,以及如何在页面上根据Cookies的值显示个性化的欢迎消息。

被折叠的 条评论
为什么被折叠?



