TextBoxFor renders a text box for a particular field of the model in the view irrespective of the type of field. By default it considers the field as string type.
EditorFor renders different html form controls based on type of field of the model. For example, if the field type is
string - renders textbox,
boolean - renders checkbox
datetime - renders input type="datetime" textbox
int - renders intput type="number" textbox
The EditorFor method is very intelligent and it has ability to adapt its output based on field type, so it's dynamic in nature. You have even the ability to change the behavior of the EditorFor for certain field types. Read this article
http://www.dotnetfunda.com/articles/show/2924/how-to-control-the-output-of-htmleditorfor-in-aspnet-mvc If you want to know how to render a TextArea using EditorFor, read this post
http://techfunda.com/Howto/asp-net-mvc/408/textarea-with-html-editorfor Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator