Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm working for a company as a contractor and modifying someone's code that doesn't look quite right to me. To be brief, he has a complete html page inside the content placeholder tags of an asp.net master/child setup.

The application seems to run okay...even though it seems a little slow at times. So my question is this, does anyone have any trouble with this page within a page?

Basically, it looks like this:

ASP.NET
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

	<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="index.aspx.vb" Inherits="TestApp.Index" %>

	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<html xmlns="http://www.w3.org/1999/xhtml">
	    <head runat="server">
	    </head>
	    <body>
	    </body>
	</html>

</asp:Content>


What I have tried:

I'm thinking of pulling out the HTML tags and putting any scripts in the HEAD content placeholder.
Posted
Comments
F-ES Sitecore 16-Dec-16 4:39am    
It doesn't look right, but I suppose it depends what is in the master page. If there is no content there at all then I suppose you'll need it all in the content page, but if that's the case why use master pages?
Roz 17-Dec-16 22:22pm    
The master page has a full complement of links and menus. Really not sure why he's doing this. He's basically creating a page within a page. I have never seen this before and have no idea if there's any performance penalty...just very weird to me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900