By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,533 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

using Include directive in ASP .NET

P: n/a
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
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

"Farooq Khan" <fa*********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #2

P: n/a
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.

"Farooq Khan" <fa*********@hotmail.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.