Browsing posts in: JQuery

ASP MVC CRUD Using JQuery Ajax and Entity Framework Part 2 (Creating The Repository, Service, and MVC Controller)


Hey guys, sorry for the lateness since i have been implementing new PHP Framework for 3 weeks. Next time i’ll explain about that PHP Framework 😀 . Now lets continue to create CRUD using Jquery Ajax and Entity Framework. After we have data table User in our database that i have explained in the First Part, now we are going to create Repository layer, Service layer and Presentation Layer. But this time i’ll only explain MVC Controller for presentation layer.

Continue Reading

ASP MVC CRUD Using JQuery Ajax and Entity Framework Part 1 (Creating The Entity Framework Code First Migration)


To learn a technology, better we try to create the basic mechanism in storing and managing data such as CRUD (Create, Read, Update, Delete) First, it will help us to find the way how to get familiar with the code and at least we know the basic knowledge of it. And finally i’ve finished to create this example of using some of technologies that i really like. This time I’m using these technologies :

  • ASP MVC 4
  • Entity Framework Code First
  • Twitter Bootstrap 3
  • JQuery

This blog post is for who don’t know how to get and post request using Ajax in ASP and want to know how the mechanism of Entity Framework in C#. There are 3 types of Entity Frameworks : Code First, Database First, and Model First. You can follow this link to find the differences and each advantages among those Entity Framework types.
Continue Reading

JQuery Several Ways to Filter an Array by Child Array

JQuery Array

There are many ways to filter an array, but we have to consider on the function performance. It might be not take an impact in short data, but it’ll in long data. Imagine if we have to manage many data collections in client site, the browser will be slow to render your web page or the user will be bored to wait the loading (until your data has been managed). The important thing is not only to consider the performance, but also to find the easiest way to use.

Before we try several ways to filter an array, we need the array data first. Each array data consist of parent and child element. Here is the code preparation :

Continue Reading

%d bloggers like this: