Hi,
In an asp.net application, I have seen some lines like this:
<!-- #Include File="xyz.html" -->
and I can see what happens when the included file contains just text and
html, but I can't find any documentation on msdn about this and I'm trying
to find out how it is processed. Specifically:
1. is the #include processed by the browser, by asp.net, or by IIS?
2. at what point in the page lifecycle is it processed?
3. where is the documentation for it?
TIA for any clues.
Andy
Curt_C [MVP] - 20 Oct 2005 13:39 GMT
It's a throwback to the ASP days and really not that handy. A control will do
you better. Anyway, INCLUDES are pulled into the page PRIOR to ANY parsing,
so they cant use any variables, etc.

Signature
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
> Hi,
>
[quoted text clipped - 13 lines]
>
> Andy
Patrice - 20 Oct 2005 13:49 GMT
See :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/c
pconServer-sideIncludeDirectiveSyntax.asp
This is server side and processed very early (AFAIK even before creating the
page as its "text" must be known before).
Under .NET this is likely there for legacy. Depending upon what you are
doing, you could use for example "user controls" instead...

Signature
Patrice
> Hi,
>
[quoted text clipped - 13 lines]
>
> Andy
Andy Fish - 20 Oct 2005 14:12 GMT
Thanks for these replies, especially the MSDN link (I was only looking at
asp.net directives so I missed it)
I wanted to have the asp.net logic decide which file to include so obviously
this is no good for my purposes. I'll dynamically load a web user control
instead.
Andy
> See :
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/c
pconServer-sideIncludeDirectiveSyntax.asp
[quoted text clipped - 24 lines]
>>
>> Andy