Settings name in asp.net.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nandadulal
    New Member
    • Jun 2010
    • 8

    Settings name in asp.net.

    Sir, how to get settings-name in asp.net? ConfigurationMa nager.Appsettin gs["settings-name"].ToString(); plz.say in stepwise?
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    If you stored your settings under <appSettings> in web.config

    then
    ConfigurationSe ttings.AppSetti ngs["name"].ToString() will fetch you the result

    Comment

    • Nandadulal
      New Member
      • Jun 2010
      • 8

      #3
      Sir, i actually want to know that how i can write/set the settings name & how i creat/set the setting in a particular drive like d.plz say stepwise.

      Comment

      • ThatThatGuy
        Recognized Expert Contributor
        • Jul 2009
        • 453

        #4
        Originally posted by Nandadulal
        Sir, i actually want to know that how i can write/set the settings name & how i creat/set the setting in a particular drive like d.plz say stepwise.
        You always get settings from the App.config file...
        Specify a key as
        Code:
        <add key="Key1" Value="Val1">
        under <appSettings>

        Comment

        Working...