Posted on: 6/30/2015 6:33:05 AM | Views : 666

in my C# code behind, I have:+SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
SqlDataAdapter da = new SqlDataAdapter("SELECT * FROM mytable order by dataname asc", con); i my web config code , after <configuration> call:
<appSettings> <ConnectionStrings> <add name="ConnectionString" connectionString="Data Source=myserver.com; Initial Catalog=db; User ID=db; Password=xyz;"/> </ConnectionStrings> </appSettings> but i get :Object not set to reference " . What in the hell is ConnnectionString , that is referring to the object, right? ?? chumley

Go to the complete details ...