Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ASP. NET Web Forms vs MVC
Message
 
 
À
31/08/2012 16:42:56
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01551247
Message ID:
01552192
Vues:
75
>Put your site.css last in the list. That way you can override the same style that's declared elsewhere.
>If the file is on the CDN, reference it there.
>

Thanks. How do I know if the jquery.css file is on the CDN? In the development guide it was not mentioned. Also, what about validate query files which are automatically added when we generate a view?

>>I still don't understand, sorry.
>>
>>Should it be
>>
>><html>
>><head>
>>    <meta charset="utf-8" />
>>    <title>@ViewBag.Title</title>
>>    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />       
>>    
>>    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
>>    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
>>   <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
>>
>>   @*     
>>    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
>>    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
>>    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
>>    <script src= "@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")" type = "text/javascript"></script>*@
>>    
>>    <script src ="@Url.Content("~/Scripts/Socrates.js")" type = "text/javascript"></script>
>>    <script src ="@Url.Content("~/Scripts/DatePickerReady.js")" type = "text/javascript"></script>
>></head>
>>
>>
>>What about all the views and validate jquery? Should it remain pointed to the local site?
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform