Please enable Javascript to correctly display the contents on Dot Net Tricks!

Dot Net Tricks Tutorial - For Beginners & Professionals

.net article,c# tutorial,asp.net tutorial,linq tutorial,wcf tutorial,mvc tutorial,entity framework tutorial,sqlserver tutorial,jquery tutorial,visual studio tutorial
 
Author : Shailendra Chauhan
Posted On : 05 Apr 2013

While developing your web application using MVC, many developers got confused when to use Web API, since MVC framework can also return JSON data by using JsonResult and can also handle simple AJAX requests. In this article, you will learn when to use Web API with MVC.

 

 

Author : Shailendra Chauhan
Posted On : 05 Apr 2013

The .Net framework has a numer of technologies that allow you to create HTTP services such as Web Service, WCF and now Web API. There are a lot of articles over the internet which may describe to whom you should use. Now a days, you have a lot of choices to build HTTP services on .NET framework. In this article, I would like to share my opinion with you over Web Service, WCF and Web API.

 

 

Author : Shailendra Chauhan
Posted On : 04 Apr 2013

Web API is a framework for building HTTP services that can be consumed by a broad range of clients including browsers, mobiles, iphone and tablets. It is very similar to ASP.NET MVC since it contains the MVC features such as routing, controllers, action results, filter, model binders, IOC container or dependency injection. But it is not a part of the MVC Framework.

 

 

Author : Shailendra Chauhan
Posted On : 02 Apr 2013

As you know Polymorphism is the concepts of OOPS which includes method overriding and method overloading. Virtual and Override keyword are used for method overriding and new keyword is used for method hiding. Let's have look on these keywords in C# and try to understand each importance.

 

 

Author : Shailendra Chauhan
Posted On : 01 Apr 2013

In previous article, I have explained Knockout CRUD Operations using MVC4. In this article, I will demonstrate, how to use Knockout with Web API for CRUD (Create, Read, Update, Delete) Operations.

 

 

Author : Shailendra Chauhan
Posted On : 01 Apr 2013

As you know Knockout is a javascript library that allow you to bind html elements to any data model. You can also use Knockout for Insert, Update, Delete and Retrieve operations. This article will demonstrate, how to use Knockout with MVC4 for CRUD (Create, Read, Update, Delete) Operations.

 

 

Author : Shailendra Chauhan
Posted On : 24 Mar 2013

Basically, binding context is an object that holds data, which is referenced from your view-model bindings. While applying bindings, Knockout automatically creates and manages a hierarchy of binding contexts. Let's have a look on different types of binding context with example.

 

 

Author : Shailendra Chauhan
Posted On : 23 Mar 2013

Working with windows phone emulator became easy and interactive, if you know your PC keyboard shortcuts for emulator. By default, your PC keyboard is not enabled for working with phone emulator and you have to operate it by using the emulator control keys only.

 

 

Author : Shailendra Chauhan
Posted On : 16 Mar 2013

You can learn about Knockout by visiting Knockout website. There is a pretty good guide about Knockout. In this article, I am going to share a handy and a really concise quick reference about the binding with syntax in Knockout.

 

 

Author : Shailendra Chauhan
Posted On : 16 Mar 2013

Knockout.js is a javascript library that allow us to bind html elements against any data model. It provides a simple two-way data binding mechanism between your data model and UI means any changes to data model are automatically reflected in the DOM(UI) and any changes to the DOM are automatically reflected to the data model.

 

 

Author : Shailendra Chauhan
Posted On : 14 Mar 2013

Error handing is the main concern in any application, whether it is web application or desktop application. Usually, we catch the exception and log its details to database or text,xml file and also display a user friendly message to end user inplace of error.

 

 

Author : Shailendra Chauhan
Posted On : 13 Mar 2013

Sometimes, your required to save Html data in the database. By default Asp.Net MVC doesn't allow a user to submit html for avoiding Cross Site Scripting attack to your application. Suppose you have below form and you can submit the Html in description textarea.

 

 

Author : Shailendra Chauhan
Posted On : 12 Mar 2013

Many times, you required to show information of each transaction and also keep a Running Total and Final Total like GridView in Asp.Net. In this article, I am going to explain, how can you achieve this using SQL Query in simple and easy way.

 

 

Author : Shailendra Chauhan
Posted On : 12 Mar 2013

Sometimes, you required to fetch or modify the records based on some conditions. In this case, you may use cursor or loop for modify your records. In this situation Case expression is best alternative for Cursor/looping and also provides better performance.

 

 

Author : Shailendra Chauhan
Posted On : 11 Mar 2013

There are different ways for returning/rendering a view in MVC Razor. Many developers got confused when to use return View(), return RedirectToAction(), return Redirect() and return RedirectToRoute(). In this article, I would like to explain the difference among "return View()" and "return RedirectToAction()", "return Redirect()" and "return RedirectToRoute()".

 

 

 
 
SUBSCRIBE TO OUR YOUTUBE CHANNEL
 
 
 
LIKE US ON FACEBOOK
 
+