How to store properties?

T

Tarun Mistry

Hi all, in Java u can have properties files which are read into the system
and then accessed really simply. These can be used to store anythnig,
usually the login data to a database etc, whathas .net got (im using c#
ASP.NET) that can do the same?

Kind regards all,
Taz
 
L

Laurent Bugnion

Hi,

Tarun said:
Hi all, in Java u can have properties files which are read into the system
and then accessed really simply. These can be used to store anythnig,
usually the login data to a database etc, whathas .net got (im using c#
ASP.NET) that can do the same?

Kind regards all,
Taz

In .NET, typically, you use the different *.config files to store this
kind of information. They are external XML files. For ASP.NET, you use
typically the web.config file. If it's not good for your needs for some
reason, they you would probably use other XML files and use the XML
interfaces to access them at runtime.

HTH,
Laurent
 
M

Mark Rae

Hi all, in Java u can have properties files which are read into the system
and then accessed really simply. These can be used to store anythnig,
usually the login data to a database etc, whathas .net got (im using c#
ASP.NET) that can do the same?

That's what web.config is for...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top