I have a global header and footer that has a Database connection and a disconnection in the header and footer and need to convert this to ASP.NET - this needs to be done before any HTML is output and after any HTML is output for the footer.
I cannot seem to find any easy way to do this, like in Classic ASP - if possible post an example or link to one instead of stating a given technique, thanks.
A bit more detail is that I have an SQL Connection string then a single SQL object I want to use throughout all the pages on the website - with the connection string and declarations in the header, and the disconnection in the footer.