Click here to Skip to main content
15,906,106 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am new with c#
and yours valuable response can help to me to improve my skill in c#
i will be thank full to you for yours this kindness
yours sensir Mian Sahib Jan
Posted

1 solution

basic practice is to add connection string to webconfig file and aceess that using system.confurationmanager class in your code.

in web config

in section connectionstring

add your connection strig.

once you get connection string in your code you can use it to ping database.
 
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