Esempio n. 1
0
 protected void gridView_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "AchDelete")
     {
         Cultural.Model.Achievement ach = new Cultural.Model.Achievement();
         ach        = bll.GetModel(int.Parse(e.CommandArgument.ToString()));
         ach.Status = "0";
         bll.Update(ach);
         BindData();
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     id = Request.QueryString["id"];
     if (!IsPostBack)
     {
         if (id != null && id.ToString() != "")
         {
             ach = achBll.GetModel(int.Parse(id));
             BindTextBox(ach);
         }
     }
 }