protected void gvList_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     int topicId = Convert.ToInt32(e.CommandArgument);
     TopicBll tbll = new TopicBll();
     if (e.CommandName == "del")
     {
         tbll.Delete(topicId);
         this.BindList();
     }
     else if (e.CommandName == "toggle")
     {
         tbll.ToggleStatus(topicId);
         this.BindList();
     }
 }
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     TopicBll qbll = new TopicBll();
     qbll.Delete(int.Parse(this.lblTopicId.Text));
     Response.Redirect("TopicList.aspx");
 }