Copied to clipboard

Flag this post as spam?

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


  • Martin Sørensen 33 posts 31 karma points
    Jul 30, 2009 @ 15:12
    Martin Sørensen
    0

    Problem with Member login

    Hi,

    I'm pretty sure that i have followed the guide correct but I get an error when trying enter the sign in page.
    I can't figure out what it is that I need to place where?

    Control 'ctl00_ctl00_ContentPlaceHolderDefault_umbLogin_2_TextBoxUserName' of type 'TextBox' must be placed inside a form tag with runat=server.

    My template looks like this:

    <%@ Master Language="C#" MasterPageFile="/masterpages/MasterTemplate.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderId="Title" runat="server">
     <umbraco:Item field="Titel" runat="server"></umbraco:Item> - sornsen.dk
    </asp:Content>


    <asp:Content ID="Indhold_ID" ContentPlaceHolderID="Indhold" Runat="Server">
    <div id="left">Menu</div>
    <div id="mainright">
     <umbraco:Item field="Indhold" runat="server"></umbraco:Item>

     <umbraco:Macro SignOutLinkText="Sign out" LoggedInText="You are logged in" LogOutOnly="0" Alias="MemberLogin" runat="server"></umbraco:Macro>
    </div>
    </asp:Content>

    For now the error can be seen here:
    http://www.sornsen.dk/privat.aspx

  • Martin Bentzen 83 posts 145 karma points
    Jul 30, 2009 @ 15:23
    Martin Bentzen
    2

    Hi Martin,

     

    Make shue you have a

    <form runat="server">
    ... your code
    </form>

    on your template

  • Martin Sørensen 33 posts 31 karma points
    Jul 31, 2009 @ 09:09
    Martin Sørensen
    0

    It works.

    Thanks.

  • Tommy Poulsen 514 posts 708 karma points
    Jul 31, 2009 @ 09:15
    Tommy Poulsen
    0

    Hi Martin, please make sure to mark Martin B's post as the solution.

    >Tommy

     

  • Shashikumar 13 posts 33 karma points
    Aug 27, 2009 @ 14:23
    Shashikumar
    0

    Hi,

    Login user control is not working in firefox browser. But it works well in all IE browsers. That is when I am trying to login with user credentials it redirecting to login page itself, clearing out text boxes. What causes for this problem?

    I have created a login user control in umbraco, in master template i have given form tag as <form id="loginForm" runat="server"></form>

    below is my master template,

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">

    <!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 id="PageHead" runat="server">        
            
      </head>

    <body>
     <form id="form1" runat="server">
            <div id="content-wrapper" class="cheight">
            <div class="content">    
                <div id="frag_left">
     <span id="lblHeaderText" style="background-color: #4682B4;height:32px;padding-left:27px;font-weight:bold;font-size:24pt;">SYNWA</span>
    <div style="background-color: white; height:2px;">&nbsp;</div>

                     <umbraco:Macro runat="server" Alias="LeftPane" macroAlias="LeftPane"></umbraco:Macro>                  

                </div>
               
                <div id="frag_right">
               
                    <div id="menu_bar_top" style="background-color: #4682B4;"> 
                 
                       <umbraco:Macro runat="server" Alias="HeaderText" macroAlias="HeaderText"></umbraco:Macro>

                    </div>
                    <div style="height: 25px; background-color: white;">
                        <span class="lblHeader">South Yorkshire Neighbourhood Watch Association</span>
                    </div>
                    <div id="menu_bar">

                        <umbraco:Macro runat="server" Alias="Menu" macroAlias="Menu"></umbraco:Macro>    

               </div>
                    <div id="mainContent">

                        <asp:ContentPlaceHolder ID="MasterTemplateContentPlaceHolder" runat="server"></asp:ContentPlaceHolder>

                       (My user control will render in this area)

                    </div>
                </div>      
                             
                <div id="footer_space"></div>           
                <div class="footer_bar">
               <umbraco:Macro runat="server" Alias="Footer" macroAlias="Footer"></umbraco:Macro>
                </div>                       
            </div>
        </div>
    </form>
        </body>

    </html>
    </asp:content>

     

    My template look like this,

    <%@ Master Language="C#" MasterPageFile="/masterpages/MasterTemplate.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="MasterTemplateContentPlaceHolder" runat="server">
         <h3 title="<umbraco:Item runat='server' field='PageHeader'/>"><umbraco:Item runat="server" field="PageHeader"/></h3>
    <umbraco:Item runat="server" field="bodyText"/>
    <umbraco:Macro runat="server" Alias="NewLogin" macroAlias="NewLogin"></umbraco:Macro>
    <umbraco:Item runat="server" field="bodyFooter"/>
    </asp:Content>

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

Please Sign in or register to post replies