Oh, by the way..., if its a connection string problem. For best practice put it in the web.config file and declare it in your classs and call it in your code behind, thereby having an n-tier applicationweb.config <connectionStrings> <add name="myConnectionString" connectionString="Server=00.000.000.00,1433;Database=mydb;Uid=username;Pwd=password;" providerName="System.Data.SqlClient" /> </connectionStrings>
your classSqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["myConnectionString"].ConnectionString.ToString());