ASP.NET知识集

编辑2015-06-23 16:31:55
标签:it

//删除指定行数据时,弹出询问对话框

((LinkButton)(e.Row.Cell[7].Controls[0]).Attributes.Add("onclick","return confirm('是否删除当前数据!')");

//注登录,清楚cookie、session

session["userinfo"]=null;

CookieHelper.writeCookie("AdminName","theway",-14400);

​CookieHelper.writeCookie("AdminPwd","theway",-14400);

Response.Rediredt('跳转页面');

05-11 17:52