예제 #1
0
    protected void TxtMail_TextChanged(object sender, EventArgs e)
    {
        Object UserDuplicate = new Object();

        UserDuplicate.Email = TxtMail.Text;
        DataTable dt = BSLAYER.DuplicateUser(UserDuplicate);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            TxtName.Focus();
        }
        else
        {
            TxtMail.Text = "";
            // PanelDuplicate.Visible = true;
        }
    }
예제 #2
0
    protected void TxtMail_TextChanged(object sender, EventArgs e)
    {
        //here we will check for duplicate email exist or not!//
        Object UserDuplicate = new Object();

        UserDuplicate.Email = TxtMail.Text;
        DataTable dt = BSLAYER.DuplicateUser(UserDuplicate);
        int       r  = dt.Rows.Count;

        if (r < 1)
        {
            TxtName.Focus();
        }
        else
        {
            TxtMail.Text           = "";
            PanelDuplicate.Visible = true;
        }
    }