Esempio n. 1
0
 protected void linkbtnEdit_Command(object sender, CommandEventArgs e)
 {
     try
     {
         if (e.CommandName == "UpdateID")
         {
             allowStaticMethods("applyDatatable('.gvdGroupClass');  staticMethod('Enable');");
             int           cmdArg = Convert.ToInt32(e.CommandArgument);
             GetGroupModel li     = obj.getGroupByGroupID(cmdArg);
             txtComments.Text        = li.Comment;
             txtGroupName.Text       = li.Name;
             ddlClient.SelectedValue = li.ClientID.ToString();
             gridBind();
             Session["GroupId"] = cmdArg.ToString();
             btnGroup.Text      = "Update";
         }
     }
     catch (Exception)
     { BindingClass.ExceptionAlertScriptManager(this.Page, this.GetType()); }
 }