Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I have one query , I have connection add in web.config . Just open
and access database, again i am going to next page shall I connect database
without using open connection. is possible means how????
Posted

1 solution

You can check for connection State in next page and if it is open then you can use it
C#
if (con.State == ConnectionState.Open)
 
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