Installing Node.JS On Windows 8

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In short blog post I will show you how to install Node.JS on a Windows OS. For our purposes I will be using Windows 8.1 machine. The overall process should (including a test page) should not take more than 10 minutes.

Download the Node.JS installer from the Site


Submit MVC Form with Ajax.BeginForm

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this post we looked at how to submit a Form(Post a Form) in Asp .Net MVC using Ajax. The blog assumes that you have a working knowledge and you are able to create a basic MVC application. If you are new to MVC, please refer to my this post. This will walk you through a step by step process of creating Asp .Net MVC application from scratch.

Create The Basic MVC Application

This Link provides you a step by step tutorial for this.

Sample MVC Form

For our example let's say in your application user has to enter a Product and its details on a page. However page refreshing after every product submit is something they do not like very much. And so you want to improve this behavior by submitting this from Asynchronously using AJAX. Great, you have two options.

  • Using Ajax.BeginForm
  • Using Pure jQuery Ajax Form Submit

Let's examine the first approach of using Ajax.BeginForm

As part of System.Web.Mvc.Ajax namespace, you have bunch of classes that contains support for Ajax operations in your MVC application. One of the class you find in this namespace is the Ajax Helper class that allows us to create a form which will be handled asynchronously as opposed to regular full post back.

In our example, I already have following two Action methods. One is a Get and the other one is Post. When user makes a GET request, they get list of existing products with a simple Form at the top of the list where they can put in the information for new products.


Build Asp .Net MVC Application From Scratch

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this blog post we will see how to create a basic Asp .Net MVC application. The purpose of this post is to server as a base for many other blog posts I have written or going to write in future.

Let's open Visual Studio and Navigate to the new Project Dialog. Select the options as highlighted in below screen shot.


Selecting All CheckBoxes With jQuery

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this post we will see how to perform some basic to intermediate level actions on the elements that are selected by your jQuery selectors. If you are new to jQuery, please referent to my previous post on Understanding jQuery. Also to get started look at this post explaining three basic jQuery selectors [ID,Class,Element].

In this blog post we will perform following actions on selected DOM elements.

  • Check/Uncheck All CheckBoxes
  • Show/Hide All Paragraphs
  • Toggle and slideToggle Actions

For our examples we will be working with the sample created at the jsFiddle web site. Following is the link to the public fiddle implementing all the samples we are discussing as part of this blog.


Check/UnCheck All CheckBoxes using jQuery

Let's say we have a form where with multiple check boxes and, instead of user selecting all options one by one we want to give an option to select all the options with a single click. following is how we can do this.


Understanding Basic jQuery Selectors

Facebook Twitter Google Digg Reddit LinkedIn Pinterest StumbleUpon Email

In this post we will start looking at the basic jQuery selectors. If you are new to jQuery, please referent to my previous post on Understanding jQuery.

In this blog post we will explore following main jQuery selectors.

  • Element Selector
  • ID Selector
  • Class Selector

For our examples we will be working with the sample created at the jsFiddle web site. Following is the link to the public fiddle implementing all the samples we are discussing as part of this blog.

jQuery Element Selector

As the name suggests, when you want to select a particular HTML element/ or set of elements by it's type your choice of jQuery selector should be Element selector. For example, selecting all the Div on the page(And hiding them and possibly show them back!!).