aravind
aravind

Reputation: 1096

bootstrap input component with asp.net textbox

I want to use twitter bootstrap input component for a textbox which is present here. How could I use it with my ASP.Net text box?

Actual code:

<div class="input-group">
  <span class="input-group-addon">@</span>
  <input type="text" class="form-control" placeholder="Username">
</div>

I have tried the following:

<div class="input-group">
    <asp:TextBox ID="text" Text="<span class=\"input-group-addon\">@</span>" runat="server" CssClass="form-control">

    </asp:TextBox>
</div>

Upvotes: 5

Views: 18166

Answers (1)

L_J_Ribar
L_J_Ribar

Reputation: 83

I've been using this type of code with no problems:

<div class="input-group">
  <span class="input-group-addon">@</span>
  <asp:TextBox ID="text" runat="server" CssClass="form-control" placeholder="Username">
  </asp:Textbox>
</div>

Upvotes: 7

Related Questions