Exemplo n.º 1
0
 public void DeleteBoard(object sender, System.EventArgs e)
 {
     BBSClass bbs = new BBSClass();
     HttpCookie UserCookie = Request.Cookies["Username"];
     String Username = Server.UrlDecode(Request.Cookies["UserName"].Value);
     try
     {
         bbs.DelBBSBoard(Int32.Parse(((LinkButton)sender).CommandArgument));
         bbs = null;
         Response.Redirect("Catalog.aspx?classID=" + classid);
     }
     catch (Exception ex)
     {
         UDS.Components.Error.Log(ex.ToString());
         Server.Transfer("../../Error.aspx");
     }
 }