コード例 #1
0
 protected void gridApointments_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     objNLog.Info("Event Started..");
     try
     {
         PatientInfoDAL Pat_Info = new PatientInfoDAL();
         if (e.CommandName == "Delete")
         {
             string userID = (string)Session["User"];
             Pat_Info.delete_PatAppointments(userID,e.CommandArgument.ToString());
             fill_AppointmentsGrid(hidDocID.Value, txtDate.Text);
         }
     }
     catch (Exception ex)
     {
         objNLog.Error("Error : " + ex.Message);
     }
     objNLog.Info("Event Completed..");
 }