using Include directive in ASP .NET

  • Thread starter Thread starter Farooq Khan
  • Start date Start date
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
 
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.
 
Back
Top