Format:
Recent snippets matching tags of script
<!--In Layout - Note that the Render call is made at the end of the body.--> <!DOCTYPE html> <html> <head> <title>@Model.PageTitle</title> @Scripts.Add("jquery-1.6.min.js", 100) </head> <body> @Html.Partial("ToolbarView", Model)
529 Views
no comments
public static class Scripts { const string ScriptsKey = "Scripts"; public static MvcHtmlString Add(string src, int priority = 0) { var scripts = GetScripts(); scripts.Add(new Script { Src = src, Priority = priority
866 Views
3 comments
Subscribe
Discuss
News
About
New Snippet
Recent Snippets
My Snippets
Favorites
Web Code
Search