Yes, that would do it, but I'm asking if there's a way to stop them from autogenerating the codebehind files and putting all that information in the aspx file itself.
I have a base code behind file that I want to use for the majority of pages in a component of my application (reporting). Some of the methods are overridable but I don't want a lot of extra .cs files cluttering up my project. So if there was way when I added a new webform to the project where that extra .cs file wasn't generated and I was given the nice auto generated template from microsoft I would be a happy little programmer again.
A member here, stsuing, had a great suggestion a few threads ago about how to create a base class that pages could be inherited from (so common functions could still be available without alot of extra files).
You can read the thread here: thread855-627093
Sounds like it *might* be what you're looking for.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.