Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include other page to aspx file

Tags:

asp.net

i want to include other aspx file to main aspx file in asp.net i could do it in jsp the code in jsp include like that

<jsp:include page="footer.jsp" />
like image 415
Leo Avatar asked Feb 26 '13 04:02

Leo


1 Answers

This works for me. I can include my menu on any page I want:

<div ID="menuContent" runat="server">
    <!-- #Include virtual="/menu.aspx" -->
</div>   

In my menu.aspx file I have raw html and some C# codeblocks and ASP will resolve those after inserting the content into the page. Great huh?

like image 167
JJ_Coder4Hire Avatar answered Oct 08 '22 00:10

JJ_Coder4Hire