Hi friends
i want to develop login control with asp.net ,c#, sql server 2005.
string myConnectString = "Data Source=NBAP25169578480;Initial Catalog=employee;Integrated Security=True";
SqlConnection con = new SqlConnection(myConnectString);
SqlCommand cmd = new SqlCommand("select * from emp where userid = @userid , password = @password ",con);
cmd.CommandType =
cmd.Connection = con;
cmd.Parameters.Add (
cmd.parameter.Add("@password , TextBox2.Text"); // how i can open new page
cmd.Connection.Open();
cmd.ExecuteNonQuery();
con.Close();