I created my usercontrol to register a user. Now I need to put it on a page "registration" What is the standard way to proceed? I read in the forum to make visible the macro editor and insert the page, but does not work.
The site is structured with a master page that has a content div like this <div id="content">. I have a ContentPlaceHolder inside like this:
Macro inside Content Page
Hello everyone,
I created my usercontrol to register a user. Now I need to put it on a page "registration" What is the standard way to proceed? I read in the forum to make visible the macro editor and insert the page, but does not work.
The site is structured with a master page that has a content div like this <div id="content">. I have a ContentPlaceHolder inside like this:
<div id="content">
<asp:contentplaceholder id="cp_content" runat="server"></asp:contentplaceholder>
<div id="toplink">
<a href="#">
<img src="/media/cef_img/b_top.gif"/>
</a>
</div>
</div>
I created a template in the master node: MembersRegistration and I insert the macro like this:
<asp:content ContentPlaceHolderId="cp_content" runat="server">
<div id="content">
<umbraco:Item field="bodyText" runat="server"></umbraco:Item>
<umbraco:Macro Alias="RegisterMember" runat="server"></umbraco:Macro>
</div>
</asp:content>
Then I created a Registration content, but user control is not displayed.
Has anyone ever done something like that?
Thanks in advance
Regards.
G.
G,
Do you have form runat server tag any where in your master page, its a .net usercontrol so needs form runat=server
Regards
Ismail
Hi Ismail,
Can I have in the Master Page a control like <asp:login /> and in a another page a macro?
Can I have multiple form in the master Page?
Thanks
G.
is working on a reply...