I have several webpages that use the same code in the codebehind to genereate parts of the web page. I would like to put this code into another class or module and share it among all of the pages in my class.
The problem is that hese procedures use methods such Response.Write and Application() and some of them need to be passed various controls from the page.
Is there a way that I can separate out this code from the code behind? I've tried Imports System.Web.UI.Page, but that apparently didn't work at all lol.
The problem is that hese procedures use methods such Response.Write and Application() and some of them need to be passed various controls from the page.
Is there a way that I can separate out this code from the code behind? I've tried Imports System.Web.UI.Page, but that apparently didn't work at all lol.