ASP.NET知识集
标签: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(‘跳转页面‘);
?
时间: 2024-12-16 01:00:47