Sample CRUD using Knockoutjs

After I watched Tekpub's Practical Knockoutjs, I decided to apply it to a new project. knockoutjs is a Model-View-View Model (MVVM) pattern it's fast and simple especially if you are a ASP.NET MVC developer.Here's a sample CRUD of category module using Knockoutjs: See the full action in ... [More]

How to use Google Maps with multiple markers in ASP.NET MVC 3

If you load more then 20 markers in your google map page, it will only load 10 markers because google map api has limitations.To solve this limitation problem we will use the google utility called MarkerManager. Let's do a code: First we need to include our scripts for Google Maps API and MarkerMa... [More]

How to use client side jquery validation in asp.net mvc 3

We can directly apply the validation by using jquery.validate.unobtrusive.min.js without using the model class.By adding html markup you can enable the client side validation. In your View this is how it looks like in your input text. First add the jquery scripts. <script type="text/javas... [More]

How to access stored procedure in Entity Framework

First we have to create stored procedure using MS SQL Server 2008 R2 CREATE PROCEDURE dbo.SelectCategories AS BEGIN SELECT * FROM dbo.Articles; END   From your Model(Model.edmx), let's right click in your model designer then Add -> Function Import.This is what it looks like when you ... [More]

How to use DevExpress MVC Gridview using Entity Framework 4

In Controller: We assume that you already created your model using Entity Framework 4 and generated a model class from your database. public ActionResult Categories(){ ModelEntities dbContex = new ModelEntities(); return View(dbContex.Categories.ToList()); } Now let's cre... [More]