protected void lnkdelete_Click(object sender, EventArgs e)
 {
     try
     {
         LinkButton  btn = (LinkButton)sender;
         GridViewRow row = (GridViewRow)btn.NamingContainer;
         int         i   = Convert.ToInt32(row.RowIndex);
         string      custreservationid = gv_reservations.Rows[i].Cells[0].Text.ToString();
         int         deletedrecord     = myappointment.DeleteAppointment(custreservationid.ToString());
         if (deletedrecord > 0)
         {
             BindData();
             div_error.Visible = false;
         }
     }
     catch (Exception ex)
     {
         lblerror.Text     = ex.Message.ToString();
         div_error.Visible = true;
     }
 }