appsetting read write

Discussion in 'ASP .Net Mobile' started by Thomas, Dec 17, 2005.

  1. Thomas

    Thomas Guest

    I can not do this when using the pocket framework.
    public static string UserName

    {

    get

    {

    return System.Configuration.ConfigurationManager.AppSettings["UserName"];

    }

    set

    {

    System.Configuration.ConfigurationManager.AppSettings.Set("UserName",
    value);

    }

    }



    I have no chance to add these assemblies using the pocket framework.

    Error 2 The type 'System.Collections.Specialized.NameValueCollection' is
    defined in an assembly that is not referenced. You must add a reference to
    assembly 'System, Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089'.

    Error 3 Cannot apply indexing with [] to an expression of type
    'System.Collections.Specialized.
     
    Thomas, Dec 17, 2005
    #1
    1. Advertisements

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. Isaac
    Replies:
    0
    Views:
    2,613
    Isaac
    Jul 10, 2003
  2. Maziar Aflatoun

    Web.config reading the appSetting

    Maziar Aflatoun, Nov 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,452
    George Durzi
    Nov 14, 2003
  3. Amy

    appSetting printing on page

    Amy, Oct 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    487
  4. softwareakash
    Replies:
    1
    Views:
    3,851
    Winista
    Jul 27, 2006
  5. Gaspar
    Replies:
    0
    Views:
    428
    Gaspar
    Aug 22, 2008
  6. Trans
    Replies:
    3
    Views:
    352
    Trans
    Dec 21, 2005
  7. sahm
    Replies:
    4
    Views:
    899
  8. JL
    Replies:
    2
    Views:
    246
    Tim Chase
    Dec 14, 2013
Loading...