我刚刚开始修改ASP:登录控件,并想要编辑它的外观.所以我做了以下事情:
<asp:login ID="login" runat="server" onauthenticate="Authenticate"> <LayoutTemplate> <asp:TextBox ID="UserName" runat="server"></asp:TextBox> <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox> </LayoutTemplate> </asp:login>
尽管我没有< table>标记文档中的任何位置,一旦我预览页面并查看源,它就会非常清楚地显示< table>那里.啊!我在世界上如何防止这种疯狂的行为,或者我被迫使用表格而不是CSS?
解决方法
您可以将其设置为不使用没有第三方扩展的表,只需确保使用
<LayoutTemplate> </LayoutTemplate>
要在控件中布置HTML /表单,请将控制外部表的Login上的属性设置为false.
RenderOuterTable="false"
就是这样,没有桌子:)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。