How to store properties?

Discussion in 'ASP .Net' started by Tarun Mistry, Feb 5, 2006.

  1. Tarun Mistry

    Tarun Mistry Guest

    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
    Tarun Mistry, Feb 5, 2006
    #1
    1. Advertising

  2. 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
    Laurent Bugnion, Feb 5, 2006
    #2
    1. Advertising

  3. Tarun Mistry

    Mark Rae Guest

    "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...
    Mark Rae, Feb 5, 2006
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UnVkeQ==?=

    to store or not to store an image

    =?Utf-8?B?UnVkeQ==?=, Mar 29, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    624
    =?Utf-8?B?UnVkeQ==?=
    Mar 30, 2005
  2. Christopher Ho
    Replies:
    0
    Views:
    485
    Christopher Ho
    Apr 1, 2004
  3. Skinny Guy
    Replies:
    1
    Views:
    1,628
  4. Ramza Brown

    Properties file and save and store

    Ramza Brown, Aug 5, 2005, in forum: Java
    Replies:
    1
    Views:
    381
    Ramza Brown
    Aug 5, 2005
  5. unomystEz
    Replies:
    3
    Views:
    324
    unomystEz
    Oct 29, 2006
Loading...

Share This Page