5

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>

1 Answer 1

7

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>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.