Showing posts with label MVC 4.0 Features. Show all posts
Showing posts with label MVC 4.0 Features. Show all posts

Tuesday, 9 August 2016

HTML Helper In ASP.NET MVC

Posted by : Manav Pandya

What is "HTML" in ASP.NET MVC ?

HTML helpers are static extension methods defined in InputExtensions class

These helper methods render HTML maup in view. ASP.Net MVC framework provides different inbuilt helper methods to render different HTML controls.

Below table describes the commonly used HTML helper methods .


Name
Description
@Html.Label("Name")
Display Label
@Html.LabelFor(model=>model.Name)
Display model binded label control
@Html.TextBox("textboxName")
Display textbox control
@Html.TextBoxFor(model=>model.PropertyName)
Display model binded textbox
@Html.TextArea("name")
Display Text area
@Html.CheckBox("name")
Display checkbox
@Html.CheckBoxFor(model=>model.PropertyName)
Display model binded checkbox
@Html.RadioButton("name")
Display radio button
@Html.RadioButtonFor(model=>model.PropertyName)
Display model binded radio button
@Html.Password("name")
Display password field
@Html.PasswordFor(model=>model.PropertyName)
Display model binded password field
@Html.Hidden("name")
Display hidden field
@Html.HiddenFor(model=>model.PropertyName)
Display Model binded hidden field

Read More

Wednesday, 6 July 2016

ASP.NET MVC 4.0 Features

Posted by : Manav Pandya

ASP.NET MVC 4 is built on top of the many features of its previous versions and include new features like:



ASP.NET Web API, a new framework for building HTTP and RESTful services.

A new HTML5-based default template in Visual Studio and a new Mobile Application project template.


Automatic selection of rendered views with Display Modes. This is particularly useful when building applications that will run not only on desktop browsers but on mobile browsers as well. I

t will let the application determine the best view to render based on the browser making the request.

jQuery Mobile and mobile features.

Task support for asynchronous controllers.

Microsoft Windows Azure SDK support for deploying ASP.NET MVC 4 applications to Windows Azure.

Bundling and minification for CSS and JavaScript files to help reduce the amount of HTTP requests as well as the size of those requests.

Facebook, OpenID, and OAuth authentication.


Read More