예제 #1
0
 protected void GvClassRowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName.Equals("Insert"))
     {
         var mName = GvClass.FooterRow.FindControl("ftrClassName") as TextBox;
         if (mName != null && !string.IsNullOrEmpty(mName.Text.Trim()))
         {
             PageDataService.AddClassByAdoNet(mName.Text);
         }
         Response.Redirect(Request.RawUrl);
     }
 }