Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

how do I make an app.config available at design time?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PJ6 - 06 Sep 2007 20:19 GMT
What's the best way to make information in an app.config file available at
design-time, in the 2.0 web forms designer?

Paul
Peter Bromberg [C# MVP] - 07 Sep 2007 02:12 GMT
There isn't. The configuration file is only loaded at runtime. What's the
goal? Maybe there is another way to approach it.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> What's the best way to make information in an app.config file available at
> design-time, in the 2.0 web forms designer?
>
> Paul
PJ6 - 07 Sep 2007 13:31 GMT
I'm working with two layers of libraries - one is the Microsoft data
application framework, which requires a config file to obtain database
connection information. The second, a business objects layer, depends on the
first for communication with the database. I don't have the option to change
either for this particular project.

In order to better utilize our "layout" group, who have very little
technical ability beyond HTML and CSS, I am attempting to make our growing
controls library, mostly grids showing various lists and details, to load
default states at design time, using live data. This will allow me to sell
the idea of using Visual Studio's Forms designer to the layout group, since
I could say dragdrop will make designing trivial, and "what you see is what
you get". In theory they would no longer have to mock up stuff by hand.
Rather, a spec could be executed at the control level, and instead of me or
someone else in development making the forms, they do it, and the events in
the code behind can be wired up later.

So... what I am looking to do is to somehow give VS a path to use to look
for config files at design time, or otherwise tell it to also copy config
files when it is copying the dlls to the design time executable folders.

Paul

> There isn't. The configuration file is only loaded at runtime. What's the
> goal? Maybe there is another way to approach it.
[quoted text clipped - 9 lines]
>>
>> Paul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.