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

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,
 
B

bruce barker

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top