#include equivalent for aspnet

D

dee

Several pages in our site use the same code. Is there a way to use the same
idea as the old C #include technique in an aspnet application.
Thanks.
Dee
 
L

Lucas Tam

Several pages in our site use the same code. Is there a way to use the
same idea as the old C #include technique in an aspnet application.

Couple ways of doing this... depending on the type of code:

1. Build a User Control / Custom Control
2. Build a shared DLL
3. Use MasterPages to build a template system
 
J

Jon Paal

You can do as Lucas suggested or use server side includes which are still
supported
 
D

dee

Thanks.

Lucas Tam said:
Couple ways of doing this... depending on the type of code:

1. Build a User Control / Custom Control
2. Build a shared DLL
3. Use MasterPages to build a template system
 
S

Steve C. Orr [MVP, MCSD]

D

dee

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top