Who is online? 134 guests and 0 members
Member login | Become a member
home » blogs » vivek_iit » The type or namespace name 'Configuration' does not exist in the namespace 'System.Web'
posted 3/12/2007 by vivek_iit
using System.Configuration; class A { /// <summary> /// Returns the connection string from the web.config file /// </summary> /// <returns></returns> public static string GetConnectionString() { ///<remarks> ///Get the DB Connection String from web.config ///</remarks> return ConfigurationManager.ConnectionStrings["ConnectionString"].ToString(); }
vivek_iit (Member since: 11/27/2008) I am one of the administrators at CodeAsp.Net and I love programming, architecting solutions, code reviews, teaching and writing about ASP.NET.
View vivek_iit 's profile
Comment (No HTML)
It's fast, easy and free! Submit articles, get your own blog, ask questions & give answers in the forums, and become a better developer, faster.
enter your email address: