using Include directive in ASP .NET

F

Farooq Khan

can i use include directive in ASP.NET as in classic ASP and how (if it's
any different from the classis ASP)? and how can i design/use Server control
if i want to replace include file?

Best Regards,
Farooq Khan
 
K

Kevin Spencer

Although you can use server-side includes in ASP.Net, they are procedural in
nature, and should generally be avoided. In ASP.Net, it is generally better
to use use User Controls, which are sort of "page-lets" that you can put
into a WebForm, or into another Control in much the same way as a
server-side include, although, unlike an SSI, you can conditionally include
User Controls.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 

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,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top