示例#1
0
        protected void lbtnEdit_Click(object sender, EventArgs e)
        {
            try
            {
                tblName.Visible = true;
                var gr        = (GridViewRow)((LinkButton)sender).NamingContainer;
                var PlaceCode = (Label)gr.FindControl("lblPlaceCode");
                var PlaceName = (Label)gr.FindControl("lblTxtTime");
                var PlaceSeat = (Label)gr.FindControl("lblEnd");

                txtCode.Text    = PlaceCode.Text;
                txtCode.Enabled = false;
                txtPlace.Text   = PlaceName.Text;
                txtSeat.Text    = PlaceSeat.Text;
                txtPlace.Focus();
                ddlPlaceGroup.Enabled = false;
                ddlPlaceG.Enabled     = false;
                ddlProvince.Enabled   = false;

                ModalExamSchedule.Show();
            }
            catch
            {
            }
        }
示例#2
0
 protected void btn_Add_Click(object sender, EventArgs e)
 {
     if (ddlPlaceG.SelectedIndex > 0 && ddlProvince.SelectedIndex > 0)
     {
         ModalExamSchedule.Show();
         UplExamSchedule.Update();
         tblName.Visible = true;
         //ddlProvince.Enabled = false;
         //ddlPlaceG.Enabled = false;
         //ddlPlaceGroup.Enabled = false;
     }
     else
     {
         UCModalError1.ShowMessageError = SysMessage.ChooseData;
         UCModalError1.ShowModalError();
     }
 }