Hello All,
I have a MasterPage and here's the code:
<form id="form1"
runat="server">
<div>
<asp:contentplaceholder
id="ContentPlaceHolder1"
runat="server">
<div id="divNeededOnMyProgram"
runat=server></div>
</asp:contentplaceholder>
</div>
</form>
So, as you can see, I have the div within the
<asp:contentPlaceHolder>
component. The problem is that when I create a content
page, the code
generated is as follows:
<%
Page Language="VB"
MasterPageFile="~/MasterPage.master"
AutoEventWireup="false"
CodeFile="Default.aspx.vb"
Inherits="_Default"
title="Child Page" %>
<
asp:Content ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
</asp:Content>
The DIV is gone. I know this is the standard behavior of the
MasterPage. But what I need is that the code within the
<asp:contentPlaceHolder> appear in every and single
Content Page
created based on a particullar MasterPage. How can I extend
my
MasterPage in order to get this behavior?
--
Nakahara Sam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "C-Sharp (C#)" group.
To post to this group, send email to C_Sharp googlegroups.com
To unsubscribe from this group, send email to
C_Sharp-unsubscribe googlegroups.com
For more options, visit this group at http://groups.
google.com/group/C_Sharp
-~----------~----~----~----~------~----~------~--~---
|