Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a website named car and connected to the database which stores and retrieve information from sql server xyz.

my another friend developed a separate website named spare parts and connected to the sql server abc.


now I copied the webpages from spare parts and pasted into cars and rebuild the solution it's executed successfully.

But the problem raised when it stores / retrieve the data from sql.

I have connected to the sql server abc to the website car but still it's asking me to configure for each sql datasource .

Is it that I need to configure each datafield or Is there any way to make it default or automatically the connect configure data source?

server error -

The connection name 'xxx_xxx_xxxx' was not found in the applications configuration or the connection string is empty.
Posted

1 solution

if the data base is same then no need to configure. Provide your connection string in Web.config file
 
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