Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Giacomo Cosenza 16 posts 36 karma points
    Apr 27, 2011 @ 12:21
    Giacomo Cosenza
    0

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

     

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Apr 27, 2011 @ 12:52
    Ismail Mayat
    0

    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

  • Giacomo Cosenza 16 posts 36 karma points
    Apr 27, 2011 @ 18:21
    Giacomo Cosenza
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft