开发者

asp.net login adds redundant table

开发者 https://www.devze.com 2023-03-23 07:09 出处:网络
I am trying to do following: <asp:Login id=\"loginControl\" OnAuthenticate=\"loginControl_Authenticate\" runat=\"server\">

I am trying to do following:

<asp:Login id="loginControl" OnAuthenticate="loginControl_Authenticate" runat="server">

    <LayoutTemplate>

        <asp:TextBox id="UserName" runat="server" placeholder="Benutzername"></asp:TextBox>

        <br/>

        <asp:TextBox id="Password" runat="server" textMode="Password" placeholder="Passwort"></asp:TextBox>

        <br/>

        <br/>

        <input type="checkbox" id="remember">&nbsp;<label for="remember">Eingeloggt bleiben.</label>

        <br/><br/>

        <asp:button id="Login" CommandName="Login" runat="server" Text="Einloggen"></asp:button>

    </LayoutTemplate开发者_运维百科>

</asp:Login>

The aforeshown code is embedded this way:

<form class="seamless filling" ID="loginControlForm" runat="server" >

    <msa:Login ID="loginControl" runat="server" ContinueDestinationPageUrl="~/eService/KundenStartseite.aspx" />

</form>

Very much to my annoyance, however, ASP.NET considers it necessary to put my overridden Template inside a table, making it look quite ugly. How can I tell ASP.NET to let me actually override its built-in layout?

Thanks in advance!


Change it to:

<asp:Login id="loginControl" RenderOuterTable="False" OnAuthenticate="loginControl_Authenticate" runat="server">

see the RenderOuterTable="False"

0

精彩评论

暂无评论...
验证码 换一张
取 消