Author: rakesh2kv | Posted on: 10/19/2009 8:37:37 AM | Views : 303

I have two projects in solution. One is a website and other is a Class Library. Each has its own web.config.
I m trying to change the web.config present in the class library,  from a method in the default.asps.cs present in the website project.
System.Configuration.Configuration rootWebConfig = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("~/ClassLibrary1");
            System.Configuration.ConnectionStringSettings connString;
            if (0 < rootWebConfig.ConnectionStrings.ConnectionStrings.Count)
            {
                connString =
                    rootWebCon ...

Go to the complete details ...