Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Im new to Umbraco and there are probably other threads about this error but I have not yet found anything that helps my situation.
So please, what seems to be my problem here?
[CODE]
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="head" runat="server"> <title><umbraco:Item field="pagetitle" runat="server"></umbraco:Item></title> </head> <body> <umbraco:Macro Alias="UserControlTest" runat="server"></umbraco:Macro>
</body></html> </asp:Content>
[/CODE]
Look at this instead:
Must have
<body> <form runat="server"> ... <umbraco:Macro Alias="UserControlTest" runat="server"></umbraco:Macro> ... <form> </body>
Hope this helps.
Regards,
/Dirk
MVC on the road..
It worked, thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
User Control Error "must be placed inside a form tag with runat=server."
Hi,
Im new to Umbraco and there are probably other threads about this error but I have not yet found anything that helps my situation.
So please, what seems to be my problem here?
[CODE]
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
<title><umbraco:Item field="pagetitle" runat="server"></umbraco:Item></title>
</head>
<body>
<umbraco:Macro Alias="UserControlTest" runat="server"></umbraco:Macro>
</body>
</html>
</asp:Content>
[/CODE]
Look at this instead:
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
<title><umbraco:Item field="pagetitle" runat="server"></umbraco:Item></title>
</head>
<body>
<umbraco:Macro Alias="UserControlTest" runat="server"></umbraco:Macro>
</body>
</html>
</asp:Content>
Must have
Hope this helps.
Regards,
/Dirk
MVC on the road..
It worked, thanks!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.