Twitter Bootstrap Buttons - Server Side code

I want to use a twitter bootstrap button and add a Button Click event to it in ASP.NET / VB.NET in my code behind. Obviously the difference between the twitter button is that it is just a HTML input and the ASP:Button is different. So how do I target the twitter bootstrap button in my code behind?

<button class="btn btn-large btn-primary" type="button">Add to Bookshelf</button></p>

Answers


use CssClass property

Sample

        Button myButton= new Button();
        myButton.Text = "First";
        myButton.CssClass = "btn btn-large btn-primary";
        this.form1.Controls.Add(myButton);

now your button became a bootstrap button :p


Need Your Help

iOS - Setting UISwitch on/off state on a Modal View Controller

ios boolean modalviewcontroller uiswitch

I'm having problems setting the state of a UISwitch from a BOOL. This is probably simple, so if anybody could help I'd really appreciate it. Here is my code which doesn't work, but it might make it...

Unity multiple collider on same object

unity3d unityscript unity3d-2dtools

I am using several box colliders on the same GameObject, the question is, is it possible to refer to each of those colliders separately using