Exemple #1
0
    protected void txt_tarifno_TextChanged(object sender, EventArgs e)
    {
        bl.tarif_no = txt_tarifno.Text;
        DataSet ds = new DataSet();

        ds = dl.secectterifno(bl);
        if (ds.Tables[0].Rows.Count > 0)
        {
            ScriptManager.RegisterStartupScript(this, this.GetType(), "redirect", "alert('The Tarif No Already Exists');", true);
            txt_tarifno.Focus();
            txt_tarifno.Text = string.Empty;
        }
        else
        {
            Button1.Focus();
        }
    }