Thanks, but I already knows that. My problem is that the following code
will not compile.
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"
Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
<asp:ScriptManager ID="ScriptManager" runat="server">
</asp:ScriptManager>
</asp:Content>
The master page contains the next code:
<%@ 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>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</div>
</form>
</body>
</html>
And now the suprise, the next code compiles succesfully.
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
</form>
</body>
</html>
Can someone explain me why the above code is not working?
Thanks in advantage.
Greetings,
René
Umeshnath wrote:
Hi ,
You have to add a Content place holder in your Master page. In the page you
are calling to master page you have to remove html tags and add the belowcode
<%@ Page Language="C#" AutoEventWireup="true"
MasterPageFile="~/MasterPage.master" CodeFile="X.aspx.cs"
Inherits="CreatePallet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="Server">
Her you can add table etc
but remove html , head, body tags it wil work
</asp:Content>
"RBM007" wrote:
I have uninstalled Atlas on my system, deleted the atlas dll and
installed AJAX. The AJAX dll is referenced with the add reference
button.
I have tried to translate the page to the AJAX standard.
The problem also occures if I try to create a new project / solution
with masterpages.
Greetings,
René
Umeshnath wrote:
Did you install Atlas software which will gives you dll
Microsoft.Web.Atlas.dll, and you have to refer the same in your solution.
>
"RBM007" wrote:
>
Hello,
I have created some pages in the (old) Atlas pages and migrated to AJAX
version. After the update I noticed that any page containing ASP.NET
AJAX won't compile anymore. Even if the same tags and properties are
used in a page without a masterpage.
Does anyone shares this exprerience with me or does anyone knows an
answer?
For the time being, I copy-pased the headings in my masterpage to the
clield pages.
Thanks in advantage.
Greetings,
René Beltman