Bootstrap in Asp.net forms | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Bootstrap in Asp.net forms

Hi guys I want to know, how I can use bootstrap classes in my form in asp.net???? in some cases the webform show me an error when I put the bootstrap classes in my controllers. like this ,when I use form-control ,it doesn't work.... <asp:textbook runat="server" ccsClass="form-control" /> please tell me if I should use another ways to add my classes....

1st Mar 2018, 12:10 AM
Beny Saberi
Beny Saberi - avatar
2 Answers
+ 1
ID property of elements are right. I can't share media in solo learn to show you the error...
1st Mar 2018, 11:21 AM
Beny Saberi
Beny Saberi - avatar
0
As far as I know that shouldn’t be a problem. Can you share the error? My guess is that it is unrelated to bootstrap. Was a while since I worked with webforms, but aren’t you missing a mandatory ID property on that texbox?
1st Mar 2018, 7:21 AM
Brandlarm
Brandlarm - avatar