DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2005
    Posts
    7

    Exclamation Tag < appSettings > in web.config

    Dear All,

    If I remove <appSettings> tag from web.config file, then in which section should I write the connection string?

    Seeking for early reply

    Abhishek

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Why did you remove the appSettings tag?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2006
    Posts
    2

    Cool appsettings

    Hello there is no need to remove appsettings tag from web.config file

    in case if u remove <appsetting> tag from web.config, u have to write code where ever u did write as like
    configurationSettings.appSettings("connectionstring")
    Replays this tag with the following tag
    dim con as new sqlconnection("user id=sa;database=databasename;server=servername")

    Then u will get correct output
    Actually for reducing connection string to no.of times we will declare it as globally in web.config file.

Similar Threads

  1. Replies: 0
    Last Post: 05-17-2006, 03:36 AM
  2. <seealso cref=..> tag
    By David Chu in forum .NET
    Replies: 1
    Last Post: 12-01-2005, 03:56 PM
  3. <, > in XML doc?
    By David Chu in forum .NET
    Replies: 1
    Last Post: 12-16-2002, 02:29 PM
  4. Replies: 2
    Last Post: 11-27-2000, 06:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links