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

Top 5 Contributors of the Month
Gaurav Pal

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

Web config ques

Posted By: Ruchi     Posted Date: March 14, 2009    Points:2   Category :ASP.Net
How can i create dynamic connection string in webconfig ? because currently what i use needs to be changed if i run it on different PC.

i.e attachDBFile takes static Path.

Author: Vuyiswa Maseko             
Posted Date: March 16, 2009     Points: 5   

There are Many ways to Do that ,

In your Case you say it has to change only when its in the Different PC, then if its like that. On your websetup Project, Give your users an option to Change the webconfig, by requesting something like Name of their Server and Database, user id and password and through a installer class Update the Webconfig accordingly.

Hope it Helps

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

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