asp.net 2.0
I've created a master page with 2 ContentPlaceHolders (named "sidebar" and
"content"):
<table style="z-index: 100; left: 12px; width: 100%; position: absolute;
top: 113px;">
<tr>
<td rowspan="3" style="width: 158px" valign="top">
<asp:ContentPlaceHolder ID="sidebar" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 688px" bgcolor="#f7f6f3" valign="top" >
<asp:ContentPlaceHolder ID="content" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 223px">
</td>
</tr>
</table>
Then I've created a webpage based on this master page...
Now I start to add a label control to the default.aspx webpage (based on the
master mention above). I select the Label control in the toolbox and drag it
over to the content (ContentPlaceHolder). I see that the border arround the
content control flashes a blue color telling that this control will be
dropped on this content place holder... But when I dropp this control on
this contentplaceholder (default.aspx) the control appear on the other
contentPlaceHolder (sidebar)
Any ideas what I'm doing wrong here?
JeffHi Jeff,
Is it because you're using absolute positioning in the master page and not
in the content page?
Ken
Microsoft MVP [ASP.NET]
"Jeff" <it_consultant1@.hotmail.com.NOSPAMwrote in message
news:er%23%23Cz1pGHA.4408@.TK2MSFTNGP04.phx.gbl...
Quote:
Originally Posted by
hey
>
asp.net 2.0
>
I've created a master page with 2 ContentPlaceHolders (named "sidebar" and
"content"):
<table style="z-index: 100; left: 12px; width: 100%; position: absolute;
top: 113px;">
<tr>
<td rowspan="3" style="width: 158px" valign="top">
<asp:ContentPlaceHolder ID="sidebar" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 688px" bgcolor="#f7f6f3" valign="top" >
<asp:ContentPlaceHolder ID="content" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="width: 223px">
</td>
</tr>
</table>
>
>
Then I've created a webpage based on this master page...
>
Now I start to add a label control to the default.aspx webpage (based on
the master mention above). I select the Label control in the toolbox and
drag it over to the content (ContentPlaceHolder). I see that the border
arround the content control flashes a blue color telling that this control
will be dropped on this content place holder... But when I dropp this
control on this contentplaceholder (default.aspx) the control appear on
the other contentPlaceHolder (sidebar)
>
Any ideas what I'm doing wrong here?
>
Jeff
>
>
0 comments:
Post a Comment