Connection string issue
single connection string in all pages only object call in other pages asp.net c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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 attend4days leftRegister
Afzaal Ahmad ZeeshanRank #60 · 27.6K reputationPosted Apr 27, 2017, 4:23 AM EDT
Also, it would be better, to create a separate class as, "DatabaseHelper", and then call the functions from there. That would make more sense, and would definitely help you in easily managing the database connections, commands to execute and how to properly dispose the objects.