Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Bootstrap CSS in ASP.NET web forms
Message
De
13/06/2013 11:11:13
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01576247
Message ID:
01576257
Vues:
43
I'm saying you could probably implement them in either platform, but MVC would probably be easier because you have more granular control of the HTML. You probably could implement in WebForms also, but since you use server controls that generate the HTML in WebForms you might have a tough time. You might be able to use Controller Adapters in WebForms to override how it renders the HTML, but I still think you would be better off using MVC.

>Are you saying that when using MVC applying bootstrap CSS could be implemented? Or you saying that you like MVC technology as compared to WebForms?
>
>>I'm not an expert on the subject, but I think it would be extremely tough to implement a bootstrap site using WebForms. You really need strict control of the HTML. I'm sure there are ways to do it in WebForms but this might be a good opportunity to switch to MVC.
>>
>>>Hi,
>>>
>>>I consider redesigning a page of an ASP.NET application incorporating the Bootstrap CSS (after watching Pluralsight training video). But I am not sure how to apply the Bootstrap CSS (conceptually). Here is brief description of how this page works:
>>>
>>>The entire ASPX page is full of asp:Table??? Controls (asp:Table, asp:TableCell). Within each cell there is asp:label with ID.
>>>In the code side of the page (.CS) a call is made to DB, a DataSet is retrieved. And then values for each asp:label is set from the
>>>dataset. E.g:
>>>
>>>lblId.text = MyDataSet.Tables[0].Rows[0][“field_name”].ToString();
>>>
>>>
>>>My understanding is that I can replace all the asp:Table controls with div using Bootstrap classes. But I suppose I can’t change the asp:label controls so I would have to leave them as is. Is this correct?
>>>
>>>Any other suggestions?
>>>
>>>TIA
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform