Quantcast
Channel: RobVolk.com » ASP.NET MVC
Browsing index pages (3 articles)
↧

MVC Html Extension Method to Output a JavaScript Date Object

Here’s a quick MVC HTML extension method that outputs a JS date object.  It’d be nice if JS had a way to represent a date literal outright, but this works just the same.  The tricky part with the...

View Article


Ensure Latest Javascript & CSS in Browser Cache in ASP.NET MVC

Each time you update your website’s Javascript and CSS files through a deployment, there’s a good chance returning visitors will use their outdated cached copy of those files.  All web browsers cache...

View Article


Using jQuery to Read JSON Returned from an MVC Controller Method

It’s easy to return a complex C# object from an MVC controller as JSON for your client-side JavaScript to consume.  Just use the Json() method of the Controller class to serialize your C# object to...

View Article
Browsing index pages (3 articles)


Latest Images