Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do I change the SQL ConnectionString when I am developing this appliaction in my home and yet be able to deploy it at my class room ? need small example.thanks
Posted
Updated 16-Nov-11 0:35am
v6

1 solution

For this purpose you can put connectionstring in web.config file. you can put connection string as below under configurations section and ater when you move your application to class room just change value in web.config.
 <appsettings>
 <add key="constring" value="actual connectionstring" />
</appsettings>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900