I'd like to know if there's a way to use:
<!--webbot bot="Include" U-Include="../../menu.htm" TAG="BODY" -->
in an ASP.NET Web form or if it's possible to include another page (htm, asp) in a ASP.NET Web form. Thank you.
The "new" way of performing includes in ASP.NET is called User Controls. Basically, they're full ASP.NET Web Forms without all the page-related tags such as HTML, HEAD, and BODY. The directive at the top of the file also changes from @page to @control. They don't render at design-time, unlike Custom Controls, but they provide a straightforward way to perform includes as you used to do in ASP.
Dig Deeper on Win Development Resources
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ... Continue Reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers. Continue Reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.