Do you guys have an example of bootstrap componentes working on a basic asp.net form (with code behind on buttons, getting dropdown selected values and etc)?
I really don’t know how to make it work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As long as you have an understanding of how ASP.NET server controls render in HTML
example:
This server control:
Renders to this HTML:
then you’re on your way to using bootstrap with ASP.NET webforms
The
CssClass="btn"is all you need to style the button with bootstrap.Paste the markup below in your .ASPX page to see an example
edit:
You can turn any standard HTML control into a server control by adding
runat="server"and then add click event handlers server side.HTML:
Code-Behind:
Rendered Anchor Tag:
This should get you what you need to implement server clicks on those button dropdown and radio bootstrap controls.