<appSettings> <add key="connstring" value="server=72.52.252.80;database=kandivalideal;"/> </appSettings>
SqlConnection cnn = new SqlConnection(); string connstring = System.Configuration.ConfigurationManager.AppSettings["connstring"]; cnn = new SqlConnection(connstring); //cnn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString; cnn.Open(); SqlCommand cmd = new SqlCommand("select mobileno, password from register where mobileno='" + txtmobile.Text + "'and password='" + txtpassword.Text + "'", cnn); cmd.Connection = cnn; SqlDataReader dr = cmd.ExecuteReader();
Login failed for user ''. The user is not associated with a trusted SQL Server connection.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)