Example #1
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            dml       ob = new dml();
            DataTable dt = new DataTable();

            dt = ob.check1(TextBox4.Text);
            if (dt.Rows.Count > 0)
            {
                ClientScript.RegisterStartupScript(GetType(), "alert", "alert('UserName Alredy Exist!');", true);
                TextBox3.Text = "";
                TextBox4.Text = "";
                TextBox5.Text = "";
                TextBox6.Text = "";
            }
            else
            {
                string userid = ob.inc2();
                ob.user_details(userid, TextBox6.Text, TextBox5.Text, TextBox4.Text, TextBox3.Text);
                TextBox3.Text = "";
                TextBox4.Text = "";
                TextBox5.Text = "";
                TextBox6.Text = "";
            }
        }