先来看看2者的语法:
TextBoxFor():
MvcHtmlString Html.TextBoxFor(Expression<Func<TModel,TValue>> expression, object htmlAttributes)

 

TextBox():
MvcHtmlString Html.TextBox(string name, string value, object htmlAttributes)

 

下面Insus.NET举个列子来演示,先创建一个models:
ASP.NET MVC的TextBoxFor()和TextBox()_TextBox


Html.TextBoxFor()例子:
ASP.NET MVC的TextBoxFor()和TextBox()_MVC_02



Html.TextBox()例子:

ASP.NET MVC的TextBoxFor()和TextBox()_TextBox_03

 

它们有什么区别:
ASP.NET MVC的TextBoxFor()和TextBox()_TextBox_04