where to insert <appSettings... > tag in web.config file

Discussion in 'ASP' started by shyam_oec, Nov 2, 2009.

  1. shyam_oec

    shyam_oec New Member

    Joined:
    Nov 26, 2007
    Messages:
    89
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Developer, .NET Framework
    Location:
    Jamshedpur
    dear sir,
    i am unable to short out a problem that i get when inserting this <appSettings....> code in web.config file.i think i am not placing it right place..so plz help


    Code:
    <appSettings>
        <add key="SQLCON" value="Data Source=.\sqlexpress;Initial Catalog=DB1;Integrated Security=True;Pooling=False"/>
      </appSettings>
    
    after inserting this in web.config i am properly writing the SqlConnection statements in main .cs file.
     
  2. nimesh

    nimesh New Member

    Joined:
    Apr 13, 2009
    Messages:
    769
    Likes Received:
    20
    Trophy Points:
    0
    Occupation:
    Oracle Apps Admin
    Location:
    Mumbai
    Home Page:
    http://techiethakkar.blogspot.com
  3. urstop

    urstop New Member

    Joined:
    Oct 17, 2007
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    0
    For connection strings you can use the
    section instead of appsettings. It will be like
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice