Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a solution that include two project .the first project is the
reference for the second project.
i want to pass the connectionstring of first project that can change
with user to second project.
how do this or how to send the connectionstring to second project?
Posted

You can't "send" the string from a DLL to a different project, but you can "ask" for the string from the DLL in the second project. It's just a matter of creating a public method or property to return it in the first project.
 
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