narayana_anthati Posted October 10, 2006 Share Posted October 10, 2006 HaiWhen i am giving indidual connection my application is working.But when a key word from web.config i am getting error.SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings("Connection"));Where i Bolded in that spot i am getting error.The error is System.Configuration.ConfigurationSettings.AppSettings is a property but it is used as a method.Thanks in advanceRegardsNarayana Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 should beAppSettings["Connection"]AppSettings is a Collection not a function Link to comment Share on other sites More sharing options...
narayana_anthati Posted October 11, 2006 Author Share Posted October 11, 2006 should beAppSettings["Connection"]AppSettings is a Collection not a functionThanks for u reply yes it now working.Regards,narayana. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now