AjaxOnly Attribute for MVC Actions

Ever wanted to restrict actions to only responding to Ajax requests?  How about restricting them through the use of a custom attribute?

Read more


'Hello World' with Node.js and Visual Studio Code

As I've shared in other posts, I like trying new things. One new thing I've been working with over the past couple of weeks is Visual Studio Code (VSC) - a lightweight editor from Microsoft that recognizes and offers IntelliSense for many different file formats. Unlike the commercial or even community editions of Visual Studio, VSC is not solution- or project-based. Instead, VSC is based on directory structures.

For those of you interested in building native JavaScript applications using Node.js, I wanted to provide a demo in how to accomplish this using Visual Studio Code. While full versions of Visual Studio do support Node.js applications, it can sometimes be overkill, especially if you're not needing pre-compiled libraries based on the .NET Framework (VSC does support referencing external libraries and compilation with MSBuild, but then we get into the discussion of should we use VSC vs. Visual Studio, which is not the point of this blog post). Again, the demonstration below is to assist you as you look to build native JavaScript applications.
Read more