Click here to Skip to main content
15,905,148 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: HTML to ASP Pin
Christian Graus15-Feb-09 9:51
protectorChristian Graus15-Feb-09 9:51 
Question[newbie] Cannot find ContentPlaceHolder Pin
jon-8015-Feb-09 8:56
professionaljon-8015-Feb-09 8:56 
I can't figure out why I'm getting this error, any ideas? I also get 'Virtual Directory does not allow content to be listed' until I restart VS2008 SP1.

Has anyone encountered similar issues?

Error:

Cannot find ContentPlaceHolder 'ContentPlaceHolder1' in the master page '/TestWebSite/WroxMozilla.master', verify content control's ContentPlaceHolderID attribute in the content page.

Wrox.master
<![CDATA[<%@ Master Language="C#" AutoEventWireup="true" CodeFile="Wrox.master.cs" Inherits="Wrox" %>]]>



<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <asp:contentplaceholder id="head" runat="server" xmlns:asp="#unknown">
    </asp:contentplaceholder>
</head>
<body>
    <form id="form1" runat="server">
    <div>
       <table cellpadding="3" border="1">
<tr bgcolor="silver">
<td colspan="2">
<h1>My Company Home Page</h1>
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1" xmlns:asp="#unknown">
runat="server">
</asp:contentplaceholder>
</td>
<td>
<asp:contentplaceholder id="ContentPlaceHolder2" xmlns:asp="#unknown">
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td colspan="2">
Copyright 2008 - My Company
</td>
</tr>
</table>
    </div>
    </form>
</body>
</html>


WroxMozilla.Master
<![CDATA[<%@ Master Language="C#" MasterPageFile="~/Wrox.master" AutoEventWireup="true" CodeFile="WroxMozilla.master.cs" Inherits="WroxMozilla" %>]]>

 <asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
     Mozilla!!
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content3" contentplaceholderid="ContentPlaceHolder2" runat="server" xmlns:asp="#unknown">
</asp:content>


Default.aspx
<![CDATA[<%@ Page Title="" Language="C#" MasterPageFile="~/Wrox.master" Mozilla:MasterPageFile="~/WroxMozilla.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>]]>

<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="Server" xmlns:asp="#unknown">
</asp:content>
<asp:content id="Content3" contentplaceholderid="ContentPlaceHolder2" runat="Server" xmlns:asp="#unknown">
</asp:content>


Jon

AnswerRe: [newbie] Cannot find ContentPlaceHolder Pin
Guffa15-Feb-09 15:32
Guffa15-Feb-09 15:32 
Question3 TIER ARCHITECTURE Pin
JAYRAJ GIRI15-Feb-09 7:09
JAYRAJ GIRI15-Feb-09 7:09 
AnswerRe: 3 TIER ARCHITECTURE Pin
Ashfield15-Feb-09 8:05
Ashfield15-Feb-09 8:05 
AnswerRe: 3 TIER ARCHITECTURE Pin
Christian Graus15-Feb-09 9:52
protectorChristian Graus15-Feb-09 9:52 
AnswerRe: 3 TIER ARCHITECTURE Pin
leckey15-Feb-09 17:19
leckey15-Feb-09 17:19 
JokeRe: 3 TIER ARCHITECTURE Pin
Jon Rista15-Feb-09 19:16
Jon Rista15-Feb-09 19:16 
GeneralRe: 3 TIER ARCHITECTURE Pin
Christian Graus15-Feb-09 19:47
protectorChristian Graus15-Feb-09 19:47 
AnswerRe: 3 TIER ARCHITECTURE Pin
rakeshs31215-Feb-09 22:03
rakeshs31215-Feb-09 22:03 
QuestionPAY PAL Pin
JAYRAJ GIRI15-Feb-09 7:06
JAYRAJ GIRI15-Feb-09 7:06 
AnswerRe: PAY PAL Pin
Ashfield15-Feb-09 8:07
Ashfield15-Feb-09 8:07 
AnswerRe: PAY PAL Pin
Christian Graus15-Feb-09 9:54
protectorChristian Graus15-Feb-09 9:54 
AnswerRe: PAY PAL Pin
leckey15-Feb-09 17:21
leckey15-Feb-09 17:21 
QuestionHelp with asp gridview css Pin
Steve Holdorf15-Feb-09 5:20
Steve Holdorf15-Feb-09 5:20 
Question[newbie] Object reference not set to an instance of an object Pin
jon-8014-Feb-09 23:33
professionaljon-8014-Feb-09 23:33 
AnswerRe: [newbie] Object reference not set to an instance of an object Pin
N a v a n e e t h15-Feb-09 3:02
N a v a n e e t h15-Feb-09 3:02 
QuestionDataGrid Problem Pin
Abdul Rahman Hamidy14-Feb-09 23:01
Abdul Rahman Hamidy14-Feb-09 23:01 
AnswerRe: DataGrid Problem Pin
N a v a n e e t h15-Feb-09 3:04
N a v a n e e t h15-Feb-09 3:04 
AnswerRe: DataGrid Problem Pin
slSoftware15-Feb-09 5:26
slSoftware15-Feb-09 5:26 
Questionhow to open a costumized page in our webform Pin
netsooz (Amir Hamidi)14-Feb-09 22:54
netsooz (Amir Hamidi)14-Feb-09 22:54 
AnswerRe: how to open a costumized page in our webform [modified] Pin
jc.net15-Feb-09 8:23
jc.net15-Feb-09 8:23 
QuestionThemes stop working when using the css friendly browser Pin
Steve Holdorf14-Feb-09 10:14
Steve Holdorf14-Feb-09 10:14 
AnswerRe: Themes stop working when using the css friendly browser Pin
Steve Holdorf15-Feb-09 9:35
Steve Holdorf15-Feb-09 9:35 
Questionaccessing controls in javascript in asp.net Pin
Tarun.Suneja14-Feb-09 9:15
Tarun.Suneja14-Feb-09 9:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.