More
Image
What is the Difference between Html.EditorFor and Html.TextboxFor in ASP.NET MVC
By Adi.jc On 11 May 2016
Categories: MVC

The Html.TextboxFor creates a textbox with the input type of text. It will always render the input textbox.
 
The EditorFor is a kind of smart helper method. This will render the control based on the type in the model. For example, assume that you have a Boolean field in the model bind to the EditorFor. This will render checkbox.
 

Comments
Message :
Comments
Adi.jc
.net
.net