Quantcast
Channel: MVC – AuthorCode
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

Convert MVC WebGrid data into JSON string and use it in controller

In this article I will demonstrates how to generate the JSON string from the WebGrid data in your MVC web application. In addition, you will learn how easy it is to use this JSON data in your...

View Article



Image may be NSFW.
Clik here to view.

Create Radio button List from the Model in MVC

Let’s suppose that we have a Model for the tbl_department and we want to render a radio button list for all departments. Take the following model as an example. In the following article you will see...

View Article

Image may be NSFW.
Clik here to view.

Getting started with WebGrid in MVC : Render the basic WebGrid

In this example I’ll show you that how to render the basic WebGrid in the Razor View. I’ll use the Sample Employee SQL Database in the examples. I believe you have setup the all prerequisites for...

View Article

Image may be NSFW.
Clik here to view.

Custom formatting of the columns in WebGrid MVC

The previous example will render all columns but you may want to limit which columns are displayed and how the style will be implement. First I’ll show you the rendering the numbers of selected...

View Article

Image may be NSFW.
Clik here to view.

Radio Buttons in WebGrid MVC

In the previous article we have discussed about how to embed jQuery UI Spinner control, TextArea and TextBox control in the MVC WebGrid. And Now in the following example we’ll see that how to show the...

View Article


Image may be NSFW.
Clik here to view.

MVC 4 Exercise-1: Bind dropdownlist based on what is selected in another...

Introduction: Create a MVC 4 page that will contains two dropdownlist controls. The first dropdownlist will be for State list and second will contains the City list on the basis of the selected state....

View Article

Image may be NSFW.
Clik here to view.

Filtering WebGrid using Ajax.ActionLink(s) in MVC

In the previous article on the Filtering web grid, we used the DropDown for the filtering. I this article I’ll use the links to filtering the webgrid. In most shopping sites you can see the sidebar...

View Article

How to solve: Ajax.ActionLink shows partial view on entire page

If you trying to update the partial view with Ajax.ActionLink and instead of reloading the partial view within the view, it loads on entire web page or overwrites the view with the partial view’s...

View Article


See table: Type mapping between Entity framework and SqlClient types

When you use the ADO.Net Entity Data Model wizard to creating the model from the SQL Server database, wizard maps the SQL Server types according to following table: SQL Server to Entity framework type...

View Article


[Table] Difference between Html.RenderPartial and Html.Partial in MVC Razor

There are different ways to render a partial view in MVC Razor such as using the Html.RenderPartial, Html.Partial, Html.Renderaction and Html.action etc. In the following table you can see the...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images