protected void Submit1_ServerClick(object sender, EventArgs e)
    {
         conn.SelectCommand = "select  * from admin where username='" + TextBox2.Text.Trim() + "' and password='" + TextBox3.Text.Trim() + "' ";
            SqlDataReader dd = (SqlDataReader)conn.Select(DataSourceSelectArguments.Empty);
            if (dd.HasRows)
            {
                Response.Redirect("query_01.aspx");
            }
            else
            {
                  conn.UpdateCommand = "update admin  set [username]='" + TextBox2.Text + "', [password]='" + TextBox3.Text + "' WHERE [id] = '" + TextBox3.Text+"'";
              conn.addupdatp("id", TextBox1.Text);
              conn.addupdatp("username", TextBox2.Text);
              conn.addupdatp("password", TextBox3.Text);
              conn.Update();
                Response.Redirect("query_01.aspx");
            }
            dd.Close();