Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 347
aravind Avatar asked Nov 21 '13 06:11

aravind


1 Answers

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>
like image 169
L_J_Ribar Avatar answered Nov 15 '22 07:11

L_J_Ribar