Quantcast
Channel: RobVolk.com » ASP.NET MVC
Browsing latest articles
Browse All 4 View Live

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


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


ASP.NET Data Caching Helper Extension Method

Sometimes ASP.NET output caching doesn’t do the trick and you need to implement data caching to avoid trips to the database or to external API’s.  Data caching is pretty simple- check the cache via a...

View Article

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
Browsing latest articles
Browse All 4 View Live


Latest Images