.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

dynamic sql connection string in web config file

Posted By: Nehal     Posted Date: October 29, 2009    Points:2   Category :ASP.Net
Hello..
How can we write the dynamic connection string in webconfig file.. Shall we do like this??
So that when I transfer or copy my project from one computer to another computer then I need not set the connection string... and i need not copy database.

Please help..

Responses
Author: Akhil Raj       [Moderator]      
Posted Date: October 29, 2009     Points: 5   

i dint get you clearly friend.. anyway for writing text or values in web.config you can check the following article

http://www.highoncoding.com/Articles/119_Writing_in_Web_config_file_dynamically.aspx


Author: Syed Shakeer Hussain             
Posted Date: October 30, 2009     Points: 5   

Hi check the belwo link for global connection string in web.config
http://www.dotnetspark.com/kb/642-how-to-store-global-connection-string.aspx



Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend