access to web.config at design time

Discussion in 'ASP .Net Building Controls' started by Oleg Slyuasrchuk, Feb 19, 2004.

  1. Is there any way to get appication settings from web.config file at design time?
    Is it possible in principal?
    Both:

    n= new AppSettingsReader().GetValue("MyApplicationName", typeof( string )).ToString();
    n= (string)System.Configuration.ConfigurationSettings.AppSettings.Get("MyApplicationName");


    return correct values at run time, and return null at design time.

    Thanks
     
    Oleg Slyuasrchuk, Feb 19, 2004
    #1
    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. KQ
    Replies:
    1
    Views:
    467
  2. Benny Ng
    Replies:
    9
    Views:
    10,261
    Benny Ng
    Oct 13, 2005
  3. flamesrock
    Replies:
    8
    Views:
    557
    Hendrik van Rooyen
    Nov 24, 2006
  4. CSharpner
    Replies:
    0
    Views:
    1,148
    CSharpner
    Apr 9, 2007
  5. Raymon Du
    Replies:
    2
    Views:
    404
    Juan T. Llibre
    May 30, 2008
Loading...

Share This Page