Wrox Home  
Search P2P Archive for: Go

  Return to Index  

ado_dotnet thread: Configuration files??


Message #1 by "Marl Atkins" <marl@s...> on Fri, 27 Sep 2002 19:58:19
Hi:

In VB I used GetPrivateProfileString (from the Windows API) to pull in 
certain values I needed to start an application.

These are values I've determined I needed for application settings.

I know that I can use GetPrivateProfileString but I'd really rather learn 
how to do it using conventional C# methods.

I have the book Professional C# 2nd Ed.
I looked at the stuff on Configuration files but it seemed exclusively 
intterested in setting versions in shared components, etc.

All I want is to be able to pull a file in w/ some values and then read 
them into some variables.

How can I do this?
Message #2 by "Brian Smith" <bsmith@l...> on Sat, 28 Sep 2002 12:20:55 +0100
You can use config files for whatever you want: Xml is a much more
flexible structure for storing information than registry keys or ini
files, and accessing the values is simple using the System.Configuration
namespace.

brian

-----Original Message-----
From: Marl Atkins [mailto:marl@s...] 
Sent: Fri, 27 Sep 2002 19:58
To: ADO.NET
Subject: [ado_dotnet] Configuration files??


Hi:

In VB I used GetPrivateProfileString (from the Windows API) to pull in 
certain values I needed to start an application.

These are values I've determined I needed for application settings.

I know that I can use GetPrivateProfileString but I'd really rather
learn 
how to do it using conventional C# methods.

I have the book Professional C# 2nd Ed.
I looked at the stuff on Configuration files but it seemed exclusively 
intterested in setting versions in shared components, etc.

All I want is to be able to pull a file in w/ some values and then read 
them into some variables.

How can I do this?
---
ASP.NET Distributed Data Applications
This book will inspire you with a range of ideas on how data 
can be used to drive Web applications, and how that data can 
be most effectively utilized at each level of the design. 
Inefficient data use leads to the sort of slow, unresponsive 
Web applications that nobody enjoys using. By making good use 
of both server and client-side code, we can solve these 
problems. This book will arm you with the techniques you need 
to build Web applications that fly.
http://www.wrox.com/ACON11.asp?ISBN=1861004923


  Return to Index