database connectivity 4m web.config
-
hi, i m connecting database 4m web.config. my code is... the page code is.. private void Page_Load(object sender, System.EventArgs e) { string str="server" +Configuration.Appsettings["servr"]+";"; str+="Database=" +Configuration.Appsettings["databse"]+";"; } but i have err with my page .. is namespace could not found sam.
-
hi, i m connecting database 4m web.config. my code is... the page code is.. private void Page_Load(object sender, System.EventArgs e) { string str="server" +Configuration.Appsettings["servr"]+";"; str+="Database=" +Configuration.Appsettings["databse"]+";"; } but i have err with my page .. is namespace could not found sam.
-
no i had given that but it giving err: namespace configuration is not found sam. -- modified at 5:24 Monday 13th February, 2006
R u writing or cause the first one will not work ! try and let me know. :) Akash
-
no i had given that but it giving err: namespace configuration is not found sam. -- modified at 5:24 Monday 13th February, 2006
Depending on which version of the ASP.NET, you should use the right api: + ConfigurationSettings.AppSettings Property /a>[^] ( for 1.1 ) + WebConfigurationManager.AppSettings Property [^] or ConfigurationSettings.AppSettings Property[^] ( for 2.0 )