views:

98

answers:

1

I have been unable to find anything using the google... If I write on my ASP.NET code page:

<!-- #include file="file_to_include.aspx" -->

the file is output to the page. How do I disable this behavior?


MSDN info on #include and Server Side Include (SSI)

+5  A: 
George Stocker
Thanks for the answer - I'm looking for a more global solution so that I can prevent this behavior totally.
Gavin Miller
Updated answer.
George Stocker
Cheers - I'll try this out. I appreciate the help!
Gavin Miller
ooo didn't know about serverside comments! hott
Jason
If you ever forget, you can use the comment-code keyboard shortcut in visual studio (ctrl-k, ctrl-u)
Frank Schwieterman
@Gortok - The command you're referencing there disables running a command line via #exec in Server Side Includes (SSI). It does not however fully disable SSIs.
Gavin Miller
I added how to fully disable SSI.
George Stocker
@Gortok - Thank you fine sir, you are a gentleman and a scholar!
Gavin Miller