Click here to Skip to main content
12,696,920 members (29,119 online)

Generating connection string in web.config while loading dll in application

Shree.grace asked:

Open original thread
I have written a class library file and use the dll of this file in web application

i write some code in this dll like generating connection string as well as appSettings in web.config file

but problem is that.... i want to generate this connection string and appsettings data while adding this dll in web application instead of running the application

so plz help me...

some frnz are not understand my question
let me clear..

when i add dll in my application it added successfully
no problem about it.
when i run my application then connection string generate in web.config

bt what happen with this...
all sessions are cleared

hence i want to generate this connection string at the time of adding this dll in application

so is there any event handler or loader is available which will help to get me result
Tags: C#, ASP.NET

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 26 Mar 2009
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100