Asp. Net MVC
I want connect enquery form database using asp. Net mvc please help me
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Asp. Net MVC
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Madan ShekarRank #428 · 5.9K reputationPosted Jul 16, 2021, 6:11 AM EDT
Madan ShekarRank #428 · 5.9K reputationPosted Jul 16, 2021, 2:29 AM EDT
Gangadhar Jagtap99 reputationPosted Jul 16, 2021, 5:05 AM EDT
Gangadhar Jagtap99 reputationPosted Jul 16, 2021, 8:51 AM EDT
Sachin SinghRank #66 · 26.2K reputationPosted Jul 16, 2021, 10:03 AM EDT
make sure you have the correct database connection string defined, also please specify the technology you are using Ado.Net or EntityFramework.
for Ado.Net:-
In visual studio menu option, Go to view-->Server explorer--> Add new connection-->specify the server name and connect. then on Your database-->Right click--->Properties--->Connection string--->Copy the connection string.
and use the same while preparing the SqlConnection object.