ASP.NET知识集

时间:2021-10-27 22:17:26

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('跳转页面');