Quote: Cannot open database "ankur" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'. 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 "ankur" requested by the login. The login failed. Login failed for user 'IIS APPPOOL\DefaultAppPool'. Source Error: Line 19: myadp.SelectCommand = new SqlCommand(); Line 20: myadp.SelectCommand.Connection = con; Line 21: con.Open(); Line 22: myadp.SelectCommand.CommandText = "select * from user1 where user1=@un and password1=@ps"; Line 23: myadp.SelectCommand.Parameters.AddWithValue("@un", TextBox1.Text);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)