Server Error in '/' Application. Cannot open database "testhost" requested by the login. The login failed. Login failed for user 'BJAC-GLOBEDNS\IWAM_plesk(default)'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Cannot open database "testhost" requested by the login. The login failed. Login failed for user 'BJAC-GLOBEDNS\IWAM_plesk(default)'. Source Error: Line 16: protected void Button1_Click(object sender, EventArgs e) Line 17: { Line 18: cs.con.Open(); Line 19: SqlCommand cmd = new SqlCommand("insert into reg(username,password)values('" + TextBox1.Text + "','" + TextBox2.Text + "')", cs.con); Line 20: cmd.ExecuteNonQuery();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)