Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to store properties?

Reply
Thread Tools

How to store properties?

 
 
Tarun Mistry
Guest
Posts: n/a
 
      02-05-2006
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


 
Reply With Quote
 
 
 
 
Laurent Bugnion
Guest
Posts: n/a
 
      02-05-2006
Hi,

Tarun Mistry wrote:
> 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
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
 
Mark Rae
Guest
Posts: n/a
 
      02-05-2006
"Tarun Mistry" <> wrote in message
news:...

> 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...


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
64-bit Sempron now in store! Silverstrand Front Page News 0 06-24-2005 09:32 PM
to store or not to store an image =?Utf-8?B?UnVkeQ==?= ASP .Net 6 03-30-2005 05:51 AM
Where does thubderbird 1.0 store email? Keith Firefox 7 12-31-2004 05:44 AM
user & password store and autofill so what is Clemens Li Firefox 1 12-17-2004 10:56 AM
Re: How to store the profile in a place different from C:\Documentsand howdeedoo@utter.pla.net Firefox 0 04-23-2004 10:02 PM



Advertisments