protected void Button1_Click(object sender, EventArgs e) { SqlConnection con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString); DataTable dt = new DataTable(); con1.Open(); SqlDataReader myReader = null; SqlCommand myCommand = new SqlCommand("select * from s3 where username='" + Session["username"] + "'", con1); while (myReader.Read()) { TextBox1.Text=(myReader["username"].ToString()); TextBox2.Text=(myReader["password"].ToString()); TextBox3.Text=(myReader["email"].ToString()); } con1.Close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)