Tom
Tom

Reputation: 1057

Does twitter bootstrap work with ASP?

I am used to working with ASP web apps and creating .aspx pages. I don't know PHP really and I have worked a while with C# and ASP. I really like bootstrap so far and designing with it in HTML looks great and seems to work great. However, I am concerned that somehow this won't transfer over to ASP.

Upvotes: 1

Views: 3443

Answers (3)

Jeremy
Jeremy

Reputation: 388

You can apply the Bootstrap CSS classes to ASP.NET controls using the CssClass parameter:

<asp:Button id="btnExample" runat="server" CssClass="btn btn-default" Text="Example" />

Upvotes: 0

Andres I Perez
Andres I Perez

Reputation: 75379

Twitter's bootstrap is used for presentation and doesn't have to do anything with any programming language. You can use the bootstrap in any project using any language provided that you include the bootstrap.css stylesheet and use the CSS classes included accordingly, so there should be no concerns over whether the bootstrap will "transfer over to ASP" or any other language.

Upvotes: 2

Sergio Tulentsev
Sergio Tulentsev

Reputation: 230336

Twitter Bootstrap is just a bunch of CSS/JS files. So it works with every web technology out there.

Another thing is that ASP.NET (at least, old one, before MVC) is relying heavily on server controls. So it could be problematic to apply twitter stylesheets and behaviour to asp.net server controls. I don't know if it got any better in modern asp.net.

As long as you use regular HTML markup to define your UI and some Javascript to bring life to it, you should be fine.

Upvotes: 5

Related Questions