Can multiple aspx pages be linked to the same code behind file?

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

I have 5 aspx pages that I'd like to share the same code behind file. Those
pages have the same set of 'core' controls and object data sources. Is this
a good practice? It seems that VS2005 cannot handle it - gets into an
endless loop of reading the aspx files.

Any alternatives?
Thanks,
 
place the code file in the app_code folder as a class file. remove the
codefile reference from the aspx pages, and have them inherit from the
shared class.

-- bruce (sqlwork.com)
 
Back
Top