[英]How do ASP.NET Identity framework (forms) with bootstrap
I'm doing an ASP.NET Web Application with Identity with this tutorial: 我在本教程中使用Identity进行ASP.NET Web应用程序 :
http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project http://www.asp.net/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project
But I would like to the form with bootstrap like that: 但我想像这样的bootstrap形式 :
<div class="input-group">
<input type="text" class="form-control" placeholder="Username">
</div>
But the form with .aspx is so: 但是.aspx的形式是这样的:
<asp:Literal runat="server" ID="StatusMessage" />
</p>
<div style="margin-bottom:10px">
<asp:Label runat="server" AssociatedControlID="UserName">User name</asp:Label>
<div>
<asp:TextBox runat="server" ID="UserName" />
</div>
</div>
How it should be? 怎么样? Thanks.
谢谢。
The idea is to add the css class's of bootstrap
to the asp.net controls, and what other attributes you may like as: 我的想法是将CSS
bootstrap
的css类添加到asp.net控件中,以及您可能喜欢的其他属性:
<div class="input-group">
<asp:Label runat="server" AssociatedControlID="UserName">User name</asp:Label>
<asp:TextBox runat="server" ID="UserName" CssClass="form-control" placeholder="Username" />
</div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.