Limit JavaScript and CSS files on ASP.NET MVC 2 Master Page based on Model and View content?

Personally, I would use a partial view and an ASP Content Placeholder.

Personally, I would use a partial view and an ASP Content Placeholder. In the Views/Shared have a partial view EditorScripts. Ascx which contains the tags defining the scripts to be included in your editing pages.

Then put a placeholder in the Site. Master tag, something like this: The, in any view that you want/need the scripts, put this code: This isn't a perfect solution and isn't as dynamic as you would like. The reason for using a partial view is that if you decide to update or add more scripts to those views, then you only have to update it in one location.

Another way would be to have a Editor. Master page that contains these scripts and other editor specific things then have that master use the Site. Master as it's master page.

Then all editor views would have the Editor. Master as their master page. HTH.

I think the telerik web asset manager allows you to accomplish what you want and is open source.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions