I have this content page, and, I would like to include a calendar control, so I randomly :) tried the following, code and got a few errors.
Any workarounds, please?
<![CDATA[<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Diary.aspx.cs" Inherits="Diary" Title="Untitled Page" %>]]>
<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
<asp:calendar id="Calendar1" runat="server"></asp:calendar>
//it's a bug including the control here (VS 2008) :confused:
</asp:content>
<asp:calendar id="Calendar1" runat="server" xmlns:asp="#unknown"></asp:calendar>
<asp:content id="Content2" contentplaceholderid="body" runat="Server" xmlns:asp="#unknown">
//it's a bug including the control here (VS 2008) :confused:
This page is still under construction.
</asp:content>
Errors
1. Error 1 Only Content controls are allowed directly in a content page that contains Content controls. c:\inetpub\wwwroot\Jon's Couch\Default.aspx 3
2. Warning 2 c:\inetpub\wwwroot\Jon's Couch\Diary.aspx: ASP.NET runtime error: Only Content controls are allowed directly in a content page that contains Content controls. c:\inetpub\wwwroot\Jon's Couch\Diary.aspx 5 1 http://localhost/Jon's Couch/
3. Warning 3 Validation (ASP.Net): Content is not supported outside 'script' or 'asp:content' regions. c:\inetpub\wwwroot\Jon's Couch\Diary.aspx 5 6 http://localhost/Jon's Couch/
4. Jon's Couch (ASP.NET 3.5; armani)
5. Source code (excluding this error
here.