5
Shouts

Adding Stylesheets, Scripts In ASP.NET MVC2 « Hugoware

published 1168 days, 2 hours, 22 minutes ago posted by http://hboss.myopenid.com/http://hboss.myopenid.com/ 1169 days, 11 hours, 51 minutes ago
Thursday, April 08, 2010 1:51:53 PM GMT Wednesday, April 07, 2010 4:22:56 AM GMT

A while back I worked on some code that allowed you to add content to different areas of a MVC view, specifically for dealing with headers and scripts. The code worked well enough but relied on a lesser used member in the Reponse class – the Filter property. Except, now in MVC2 you see this little message when you try to mess with the Filter…

Filtering is not allowed? What? Why not?!? Admittedly, the original solution was rather hackish because it tried to perform all of the work in the Render phase...

category: Web Dev | clicked: 4 | | source: somewebguy.wordpress.com | show counter code
tags: ASP.NET MVC, C#, Page life Cycle, MVC, ASP.NET