2012年7月29日

页面回调时参数保存原样,并且可以讲保存先前用户的输入的值

摘要: 用户自定义事件中: string content = txtcontent.Text.Trim(); string title = txttitle.Text.Trim(); if (Session["User"] == null) { //还没登录转向登录页进行登录 Response.Cookies["content"].Value = content; Response.Cookies["title"].Value = title; //编码后才不会被抹掉 string url = Server.UrlEncode(Request 阅读全文

posted @ 2012-07-29 15:30 yxfaction 阅读(238) 评论(0) 推荐(0) 编辑

在线用户的简单的统计和显示(只是一种很局限的在线用户统计显示,先留着,以后再研究复杂的)

摘要: 步骤一.在全局函数Application_Start中加入:if (Application["Online"] ==null) { List<string>list=newList<string>(); Application["Online"] =list; }步骤二、然后在用户登录后加入:List<string>list=Application["Online"] asList<string>; //将登陆的用户名存入Application["Online"]中 阅读全文

posted @ 2012-07-29 10:36 yxfaction 阅读(146) 评论(0) 推荐(0) 编辑

导航