CodeVerge.Net Beta
Login Idy
Register Password
  Forgot?
Explore    Item Entry    Members   
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_web_developer_2008_express Tags:
Item Type: NewsGroup Date Entered: 1/12/2008 5:33:55 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 4 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
AnshumanT
Asp.Net User
ContentPlaceHolder Issue1/12/2008 5:33:55 PM

0/0

Hi I am using MasterPages.master to create template to be used on the default.aspx. When I create a custom Contentplace holder, in the Design Mode I can write whatever I want in the Contentplace holder, and do a preview on it and I am not able to see a thing.

 When I open the Source Code and I type within the html tages, and then preview in the browser I am able to see the context that I added. I am not able to figure out what the problem is. I am using VS 2008 express edition.
 

Example is here:

Design View Text Added to the Content View was Different:

 This is the default Content page.   Let me keep on typing till you can see all of this. Can you see all of this or not. This does not work at all in preview.

Source View:

<%@ Page Language="C#" MasterPageFile ="~/MasterPage.master" %>


<asp:Content ID="Content1" runat="server"
    contentplaceholderid="ContentPlaceHolder1">
              This is the default Content page.   Let me keep on typing till you can see all of this. Can you see all of this or not.
</asp:Content>

 

 I cannot figure the problem out.

 

AnshumanT 

pkellner
Asp.Net User
Re: ContentPlaceHolder Issue1/12/2008 7:39:23 PM

0/0

 

 

hmm.  this works for me in vs2008

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" Title="Untitled Page" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

I See This.

</asp:Content>

 

AND THE MASTER PAGE:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!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">

<title>Untitled Page</title>

<asp:ContentPlaceHolder id="head" runat="server">

</asp:ContentPlaceHolder>

</head>

<body>

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

<div>

<asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">

 

</asp:ContentPlaceHolder>

</div>

</form>

</body>

</html>

 


Peter Kellner
http://73rdstreet.com and blogging at
http://PeterKellner.net
MVP, ASP.NET
AnshumanT
Asp.Net User
Re: ContentPlaceHolder Issue1/12/2008 11:15:00 PM

0/0

 Something was amiss on the page. I closed every thing exited VS2008 Express and then restarted my PC. I opened the VS2008 again and all of sudden, it was working. I did not change anything once back in the IDE. I simply ran the app. and it seemed to be working on that instance.

 

Thank you for your reply though.


 

3 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

scalecontent issue with IE - macromedia.flash.actionscript - Web ... scalecontent issue with IE, > ROOT > NEWSGROUP > Adobe-Macromedia Forums > ... panel = contentplaceholder. won't let me use forms authentication iis 7 ...
Feedback: Page design doesn't work when ContentPlaceHolder from ... If this issue is urgent, please contact support directly (see http://support. ... We are escalating this issue to the appropriate group within the Visual Studio ...
Feedback: ContentPlaceHolder control in the <head> section results in ... <asp:ContentPlaceHolder ID="Head" runat="server"> <meta name="Description" ... important issue. ... work around this issue, loop through each ...
Issue 5 - nhaml - Google Code Issue 5: Support for multiple "ContentPlaceHolders" ... <html> <head> <title><asp:contentplaceholder id="TitleRegion" /></title> <script> ...
AJAX Control Toolkit - View Issue <asp:ContentPlaceHolder runat="server" ID="MainContent"> </asp:ContentPlaceHolder> ... is a general popup control issue. ListSearch also has the same issue. ...
AJAX Control Toolkit - View Issue ModalPopup pops up within contentplaceholder when using master pages & user controls ... check, if the contentplaceholder has a css style: position:relative. ...
Master Pages, Themes and Navigation Controls Master Pages, Themes and Navigation Controls. Re: Weird ContentPlaceHolder issue. Re: Weird ContentPlaceHolder issue. Weird ContentPlaceHolder issue ...
Working with content areas in code behind In my master page, I have a ContentPlaceHolder defined: <asp:ContentPlaceHolder runat="server" ... Google search shows that many others have had the same issue. ...
ComponentArt Forums - Show Post ... contentplaceholder id="SecondaryMaster" runat="server"></asp:contentplaceholder> ... I tried the code quoted above but was not able to reproduce the issue. ...


 
All Times Are GMT