Persistent information...

Discussion in 'ASP .Net' started by Paul M, Dec 2, 2003.

  1. Paul M

    Paul M Guest

    Hi folks,

    Am new to asp.net and I'm trying to find out how to keep persistent
    information.

    The main thing I need to do is carry round an encrypted connection string
    for my database, but there are likelly to be other 'system' scoped data that
    I'll need (database roles come to mind).

    I've looked at the web.config file, but that only allows a static connection
    string. I'm using forms authentication with a mixed mode SQL 2K server.

    Cheers...P
     
    Paul M, Dec 2, 2003
    #1
    1. Advertising

  2. Paul M

    Marc Guest

    You can use either Application variables, which exist for all users
    for a web application, or Session variables, which exist for a
    particular user session.

    To use,

    Application("MyApplicationVariable") = "Hello World"
    or
    Session("MySessionVariable")=123.45


    "Paul M" <> wrote in message
    news:...
    >
    > Hi folks,
    >
    > Am new to asp.net and I'm trying to find out how to keep persistent
    > information.
    >
    > The main thing I need to do is carry round an encrypted connection

    string
    > for my database, but there are likelly to be other 'system' scoped

    data that
    > I'll need (database roles come to mind).
    >
    > I've looked at the web.config file, but that only allows a static

    connection
    > string. I'm using forms authentication with a mixed mode SQL 2K

    server.
    >
    > Cheers...P
    >
    >
     
    Marc, Dec 2, 2003
    #2
    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. z. f.
    Replies:
    0
    Views:
    684
    z. f.
    Feb 3, 2005
  2. subrato
    Replies:
    8
    Views:
    916
    Juan T. Llibre
    Mar 14, 2006
  3. clercmedia
    Replies:
    2
    Views:
    32,308
    clercmedia
    Dec 9, 2005
  4. lerenard001
    Replies:
    0
    Views:
    425
    lerenard001
    Jul 7, 2008
  5. gk
    Replies:
    7
    Views:
    976
    Tom Anderson
    Oct 12, 2010
Loading...

Share This Page