Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 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);
     }
 }