Database connection include ..

alit2kaii8

New Member
Hi,<BR>In ASP I used to create a function for opening a database source and returning back a handle to the Connection Object. I place the function in a file which I include in every ASP page that needs to open a database connection. This was so useful because I change the connection string, properties, etc. in one place only.<BR><BR>I will appreciate if you show the alternative technique for doing the same in ASP.NET. I cannot find an answer for this anywhere. <BR><BR>Thank you for your help.<BR><BR>Regards,<BR>Mazen
 
Back
Top