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 14:40:25
 
 
À
13/06/2013 14:15:00
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:
01576334
Vues:
30
It's common to have logic in the View, but logic needed to display things.

Displaying each item in a List as a table comes to mind. Or don't you have any @foreach or @if statements in a view?

>I'm not very knowledgeable about testing views but it feels wrong to have anything in it to test. The logic should be in the Controller which is easily tested. If you do want to automatically test the views you'll need to use something like Selenium, but these kinds of tests incur a greater cost than automated unit tests.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform