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
 
Posted By : Shailendra Chauhan, 12 Jan 2013
Updated On : 11 Jun 2014

Uploading a file in Asp.Net MVC application is very easy. The posted file is automatically available as a HttpPostedFileBase parameters in the action of the controler. For uploading a file on the server you required to have a file input control with in html form having encoding type set to multipart/form-data.

 

 

Posted By : Shailendra Chauhan, 11 Jan 2013
Updated On : 11 Jun 2014

In previous posts I have explained how can we do custom paging and sorting in WebGrid. You can also enhance WebGrid with ajax for asynchronous update of webpage.For making an Ajax WebGrid, we have to set the value of ajaxUpdateContainerId parameter, in which we want to generate the WebGrid. Usually the container should be a DIV as show below:

 

 

Posted By : Shailendra Chauhan, 11 Jan 2013
Updated On : 11 Jun 2014

WebGrid is simply used to display the data with paging and sorting. If you want to control the default behavior of the webgrid, you need do it manually. In this article, I would like to explore how can we do custom paging and sorting. In this article I have used the MVC4 and Entity Framework 5.0 with VS2012.

 

 

Posted By : Shailendra Chauhan, 09 Jan 2013
Updated On : 11 Jun 2014

Many times, we required to upload file with strongly-typed view and also apply validation on uploading file using data annotation validators. In this article, I would like to share, how can we upload a file and validate that file, firstly at client side and after that at server side.

 

 

Posted By : Shailendra Chauhan, 06 Jan 2013
Updated On : 28 Jan 2014

Authorization is the process of determining the rights of an authenticated user for accessing the application's resources. The Asp.Net MVC Framework has a AuthorizeAttribute filter for filtering the authorized user to access a resource.

 

 

Posted By : Shailendra Chauhan, 06 Jan 2013
Updated On : 11 Jun 2014

By default, Asp.Net MVC support session state. Session is used to store data values across requests. Whether you store some data values with in the session or not Asp.Net MVC must manage the session state for all the controllers in your application that is time consuming. Since, session is stored on server side and consumes server memory, hence it also affect your application performance.

 

 

Posted By : Shailendra Chauhan, 06 Jan 2013
Updated On : 11 Jun 2014

The Model-View-Controller (MVC) pattern was introduced in 1970s. It is a software design pattern that splits an application into three main aspects : Model, View and Controller. Moreover, MVC pattern forces a separation of concerns within an application or example, separating data access logic and business logic from the UI.

 

 

Posted By : Shailendra Chauhan, 05 Jan 2013
Updated On : 28 Mar 2015

Caching is a most important aspect of high-performance web application. Caching provides a way of storing frequently accessed data and reusing that data. Practically, this is an effective way for improving web application’s performance.

 

 

Posted By : Shailendra Chauhan, 05 Jan 2013
Updated On : 11 Jun 2014

You can also implement bundling and minification technique with in Asp.net MVC3 and Asp.net 4.0. In previous article Asp.net MVC 4 performance optimization with bundling and minification, I have explained both the techniques, Now I would like to share you could you achieve this functionality with .Net Framework 4.0.

 

 

Posted By : Shailendra Chauhan, 04 Jan 2013
Updated On : 11 Jun 2014

MVC4 and .Net Framework 4.5 offer bundling and minification techniques that reduce the number of request to the server and size of requested CSS and JavaScript library, which improve page loading time.

 

 

Posted By : Shailendra Chauhan, 01 Jan 2013
Updated On : 06 Jan 2013

Areas was introduced in Asp.net MVC2 which allow us to organize models, views, and controllers into separate functional sections of the application, such as administration, billing, customer support, and so on. This is very helpful in a large web application, where all the controllers, views, and models have a single set of folders and that become difficult to manage.

 

 

Posted By : Shailendra Chauhan, 01 Jan 2013
Updated On : 11 Jun 2014

In previous articles, I have described the Routing System and how to create Route Constraints in your application. Now the time is to resolve the common error "multiple matching controllers were found" raised by the routing system when your application have more than one controller with the same name in different namespace.

 

 

Posted By : Shailendra Chauhan, 01 Jan 2013
Updated On : 01 Jan 2013

In previous article, I have described the Routing and how to create route in your application. Now the time is how to control the behavior of a route. Basically route constraints is way to put some validation around the defined route.

 

 

Posted By : Shailendra Chauhan, 01 Jan 2013
Updated On : 11 Jun 2014

Basically, Routing is a pattern matching system that monitor the incoming request and figure out what to do with that request. At runtime, Routing engine use the Route table for matching the incoming request's URL pattern against the URL patterns defined in the Route table. You can register one or more URL patterns to the Route table at Application_Start event.

 

 

Posted By : Shailendra Chauhan, 30 Dec 2012
Updated On : 11 Jun 2014

Since registration form is a common form, so I prefer it to demonstrate the basic validation in mvc4. I have already explained the validation with data annotation and how to enable client side validation in mvc razor, now my focus is to develop registration form with client side and server side validations.

 

 

 
 
13 AUG
NodeJS Development (offline)

Sat, Sun 05:00 PM-06:30 PM

More Details
12 AUG
NodeJS Development (online)

Mon-Fri 06:00 AM-7:30 AM IST

More Details
8 AUG
ASP.NET MVC with AngularJS Development (online)

Monday      09:30 PM-11:00 PM IST

5 AUG
AngularJS Development (online)

Mon-Fri     08:00 PM-09:30 PM IST

1 AUG
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     (07:30 AM-09:00 AM IST)

24 JUL
AngularJS Development (offline)

Sat,Sun     (08:00 AM-09:30 AM)

24 JUL
ASP.NET MVC with AngularJS Development (offline)

Sat, Sun     (09:30 AM-11:00 AM)

BROWSE BY CATEGORY
 
SUBSCRIBE TO LATEST NEWS
 
LIKE US ON FACEBOOK
 
+