connection string issue
single connection string in all pages only object call in other pages asp.net c#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Afzaal Ahmad ZeeshanPosted Apr 27, 2017, 8:23 AM
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.