protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Maticsoft.BLL.NewsGroup bll = new Maticsoft.BLL.NewsGroup(); if (Request.Params["id"] != null && Request.Params["id"].Trim() != "") { int ID = (Convert.ToInt32(Request.Params["id"])); bll.Delete(ID); } } }