Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do add Code Behind to a bootstrap input button in ASP.NET C#

Status
Not open for further replies.

Rajesh Karunakaran

Programmer
Sep 29, 2016
545
MU
Hi Team,

I was just trying to make a login form in Visual Studio 2010, C#, using BootStrap. While I am able to get the text boxes and buttons, I am not able to figure out how I can attach the code (ie code behind of a usual DotNet button control) to the BootStrap button. Is it actually possible to do that? Or, do I have to go with the BootStrap way? I see that there is a 'OnClick' even specification for BootStrap button.

Can anyone give some ideas on this?

Thanks in advance.

Rajesh
 
What have you tried, if anything, so far?
what does your markup and code-behind look like?
 
Hi jbenson001,

Thank you for your time!
By the way, I realised that in fact we can have a DotNet button itself in the form and to make it rendered using bootstrap classes, basically we just have to specify the respective bootstrap class through 'cssClass' property. Now, it works fine.

Rajesh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top