IT Community - Software Programming, Web Development and Technical Support

Which is the best place to store connectionstring in .NET projects ?

This is a discussion on Which is the best place to store connectionstring in .NET projects ? within the ASP and ASP.NET Programming forums, part of the Web Development category; Hi, Any one Explain. Thanks, Sundar Raja...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > ASP and ASP.NET Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-20-2007, 11:20 PM
sundarraja sundarraja is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 174
sundarraja is on a distinguished road
Default Which is the best place to store connectionstring in .NET projects ?

Hi,

Any one Explain.

Thanks,
Sundar Raja
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-21-2007, 01:18 AM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Thumbs up Re: Which is the best place to store connectionstring in .NET projects ?

In web.config we can store the connection string

there is one tag called connectionStrings in web.config

Pls see the code below


<connectionStrings>

<add name="ConnectionString1" connectionString="Data Source=localhost;Initial Catalog=DBanme;Persist Security Info=True;User ID=sa;Password=password" providerName="System.Data.SqlClient"/>

</connectionStrings>

Thanks
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP server in Java WEb projects? saravanan Java Server Pages (JSP) 0 03-21-2008 03:59 AM
How to Place Icon In URL velhari HTML, CSS and Javascript Coding Techniques 1 11-28-2007 06:56 AM
WM 6 emulator not accessing web projects on my machine :( theone Windows Mobile 1 07-27-2007 05:45 AM
What are the situations we have to use a Web Service and Remoting in projects in asp. oxygen ASP and ASP.NET Programming 1 07-26-2007 04:00 AM
Place to start with, Hi all capture Introductions 4 03-25-2007 08:03 AM


All times are GMT -7. The time now is 09:42 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0