Hello guys,
I have table with 2 fields ( name and pass ) with data and I want to make username and password by using Textbox1 and textbox 2 ??? how??
help please
this is my code
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ToString());
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = string.Format("access1");
SqlParameter PID = new SqlParameter("@NewID", DbType.Int64);
PID.Direction = ParameterDirection.Output;
cmd.Parameters.Add(PID);
// Label6.Text = "";
//Label4.Visible = false;
if (TextBox1.Text.Equals("@name") && ...
Go to the complete details ...