Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dbl Click
Message
Information générale
Forum:
ASP.NET
Catégorie:
Client-side développement
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01556330
Message ID:
01557554
Vues:
58
>>I think I have an idea of what may be wrong with validations, etc.
>>
>>I first tried returning View(client), but then it was returning the view with the menu, so I changed it to partial view. However, Partial view may not have all necessary scripts.
>>
>>Do you think this is what's going on in regards to validations? If so, what is the solution - non-partial view but with a different layout?
>>
>>Or is where a way to use the same Layout, but don't load the top section and bottom?
>>
>
>I usually create a layout named _PopupLayout.cshtml for these types of situations. It includes all the required scripts, but I remove almost everything else (header, footer, etc). I would fix this first before looking at anything else.

I found this page http://www.devcurry.com/2012/07/aspnet-mvc-displaying-partial-views.html and another by the same author where he uses partial views and loads them slightly different. Do you think I should try his way or we end up with the same problems I have already?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform