Re: Can not drag controls onto the design view of a page

Tech-Archive recommends: Fix windows errors by optimizing your registry



This is long but it boils down to a simple question of where is it OK to
place a ContentPlaceHolder .

I don't know if anyone has enough insight into the working of asp.net so
that the following means something to him I know that I don't know what to
make of it. (relates to: design view of a content page shows only the
master page - no content page controls)

I take a solution that when I open a page in solution mode the page shows as
it should - that is combined with the master page. (My pages when so opened
in my solution only show the master page - the aspx file's controls do not
show.)

I copy an .aspx and the .aspx.vb page from the my solution into the
working solution and when I open in design mode I see the master page
modified with the open page's controls.

I copy an .aspx and the .aspx.vb page from the working solution into my
solution and when I open in design mode I see only the master page. So it
appears it is not the page itself but something in my solution that is the
problem.

I compare the two solutions.

We both have:
<%@ Page Language="VB" MasterPageFile="~/Main.master" Title="Your Name Here
| Resume"

CodeFile="Resume.aspx.vb" Inherits="Resume_aspx" %>

<asp:content id="Content1" contentplaceholderid="Main" runat="server">




I have:
<form id="form2" runat="server">

..snip

<asp:Table ID="TableMain" runat="server" Style="border: Maroon 9px Ridge;">

..snip
<asp:TableRow runat="server" ID="TableRow8">

<asp:TableCell runat="server" ID="TableCellR8C1">

<asp:ContentPlaceHolder ID="Main" runat="server" />

</asp:TableCell>

</asp:TableRow>

and



It has:

<form id="form1" runat="server">

..snip

<asp:contentplaceholder id="Main" runat="server" />



Then:

I cut the ContentPlaceHolder out of my file and paste it right after the
<form and it worked OK.

Can't have ContentPlaceHolder in a table cell?

If it is ok to have it in a table cell can you see what I have wrong?



If you got this far thanks already!






.



Relevant Pages

  • Re: master pages
    ... and I select that aspx page with master page. ... Just add another content tag referencing the id of the second content place holder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: master pages
    ... and I select that aspx page with master page. ... place holder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • master pages
    ... I have created a master page and I have contentplaceholder on that ... and I select that aspx page with master page. ... second contentpageholder in html because I already attach that aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: simple question - url target
    ... You add manage controls inside contentplaceholder: ... In old ASP days where one used to use html frame and clicking link in one ... how can I do in aspx pages while using master pages? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How do I cope with client-side Javascript functions with master pages?
    ... I found out that you don't have to have a content control in the .aspx for every contentplaceholder in the master. ... This means that I can add a contentplaceholder in the head of the master, and then just this page can define content controls for it. ...
    (microsoft.public.dotnet.framework.aspnet)