Web.config reading the appSetting

Discussion in 'ASP .Net' started by Maziar Aflatoun, Nov 14, 2003.

  1. Hi everyone,

    I'm tring to read the appSettings from my Web.config file in Visual
    Studio.Net (Code behind page) and it doesn't recognize
    ConfigurationSettings.AppSetting? Yet it works in my .aspx page.

    Any idea?

    Thank you
    Maz
    Maziar Aflatoun, Nov 14, 2003
    #1
    1. Advertising

  2. Maziar Aflatoun

    George Durzi Guest

    Add:
    using System.Configuration

    to the top of your page

    "Maziar Aflatoun" <> wrote in message
    news:ML8tb.68760$...
    > Hi everyone,
    >
    > I'm tring to read the appSettings from my Web.config file in Visual
    > Studio.Net (Code behind page) and it doesn't recognize
    > ConfigurationSettings.AppSetting? Yet it works in my .aspx page.
    >
    > Any idea?
    >
    > Thank you
    > Maz
    >
    >
    George Durzi, Nov 14, 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. Amy

    appSetting printing on page

    Amy, Oct 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    364
  2. softwareakash
    Replies:
    1
    Views:
    3,581
    Winista
    Jul 27, 2006
  3. CSharpner
    Replies:
    0
    Views:
    1,000
    CSharpner
    Apr 9, 2007
  4. Gaspar
    Replies:
    0
    Views:
    324
    Gaspar
    Aug 22, 2008
  5. Thomas

    appsetting read write

    Thomas, Dec 17, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    112
    Thomas
    Dec 17, 2005
Loading...

Share This Page