protected void TxtYYYY_TextChanged(object sender, EventArgs e) { try { int Len = 0; Len = TxtYYYY.Text.Length; if (Len != 4) { WebMsgBox.Show("Inavlid month, Enter valid month....!", this.Page); TxtYYYY.Text = ""; TxtYYYY.Focus(); } else { DdlRecDiv.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtMM_TextChanged(object sender, EventArgs e) { try { int Len = 0; Len = TxtMM.Text.Length; if (Len > 2 || Convert.ToInt32(TxtMM.Text) > 12) { WebMsgBox.Show("Inavlid month, Enter valid month....!", this.Page); TxtMM.Text = ""; TxtMM.Focus(); } else { TxtYYYY.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }