Partial Types with Code Behind in ASP.NET 2.0?

G

Guest

I just read on Slash Dot about partial types.

Now, is it possible to have a code behind split over two pages but still
referencing the same .aspx file???

If so, that would be really nice as every now and then there is some code
behind code that just gets to be a lot for a single .aspx page


Untitled.aspx
Untitled.aspx.1.cs <- part 1 that works with Untitled.aspx
Untitled.aspx.2.cs <- part 2 that works with Untitled.aspx

So when I hit the Untitled.aspx with my browser, it automatically JITs both
the split code behind pages together....this seems like something very
doable in ASP.NET 2.0.....
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top