Exemplo n.º 1
0
 protected void TxtFMM_TextChanged(object sender, EventArgs e)
 {
     try
     {
         int Len = 0;
         Len = TxtFMM.Text.Length;
         if (Len > 2 || Convert.ToInt32(TxtFMM.Text) > 12)
         {
             WebMsgBox.Show("Inavlid month, Enter valid month....!", this.Page);
             TxtFMM.Text = "";
             TxtFMM.Focus();
         }
         else
         {
             TxtFYYYY.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
Exemplo n.º 2
0
 protected void TxtFYYYY_TextChanged(object sender, EventArgs e)
 {
     try
     {
         int Len = 0;
         Len = TxtFYYYY.Text.Length;
         if (Len != 4)
         {
             WebMsgBox.Show("Inavlid Year, Enter valid Year....!", this.Page);
             TxtFYYYY.Text = "";
             TxtFYYYY.Focus();
         }
         else
         {
             TxtTMM.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }