Exemple #1
0
    protected void Txtdiv1_TextChanged(object sender, EventArgs e)
    {
        try
        {
            AC1 = SP.Getaccno(Txtdiv1.Text, Session["BRCD"].ToString());

            if (AC1 != null)
            {
                string[] AC = AC1.Split('_');;
                Txtdiv1name.Text = AC[1].ToString();
                Txtdiv2.Focus();
                return;
            }
            else
            {
                Txtdiv1.Text     = "";
                Txtdiv1name.Text = "";
                lblMessage.Text  = "Enter valid Product code...!!";
                ModalPopup.Show(this.Page);
                Txtdiv1.Focus();
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Exemple #2
0
 protected void txtOtherPrName5_TextChanged(object sender, EventArgs e)
 {
     try
     {
         CUNAME = txtOtherPrName5.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             txtOtherPrName5.Text = custnob[0].ToString();
             txtOther5.Text       = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString());
             Txtdiv1.Focus();
             return;
         }
         else
         {
             txtOther5.Text       = "";
             txtOtherPrName5.Text = "";
             lblMessage.Text      = "Enter valid Product code...!!";
             ModalPopup.Show(this.Page);
             txtOther5.Focus();
             return;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }