示例#1
0
 protected void btndelcatalog_Click(object sender, System.EventArgs e)
 {
     BBSClass bbs = new BBSClass();
     HttpCookie UserCookie = Request.Cookies["Username"];
     String Username = Server.UrlDecode(Request.Cookies["UserName"].Value);
     try
     {
         bbs.DelBBSCatalog(Int32.Parse(((LinkButton)sender).CommandArgument));
         bbs = null;
         Response.Redirect("Catalog.aspx?classID=" + classid);
         //Response.Write("<script language=javascript>alert('ɾ���ɹ�!');parent.location.reload();</script>");
     }
     catch (Exception ex)
     {
         UDS.Components.Error.Log(ex.ToString());
         Server.Transfer("../../Error.aspx");
     }
 }