Condividi tramite


InputExtensions.TextBoxFor Metodo

Definizione

Overload

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Restituisce un elemento di input di testo.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Restituisce un elemento di input di testo per ogni proprietà dell'oggetto rappresentato dall'espressione specificata, utilizzando gli attributi HTML specificati.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Restituisce un elemento di input di testo.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Restituisce un elemento input di tipo testo per ogni proprietà nell'oggetto rappresentato dall'espressione specificata.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Restituisce un elemento di input di testo per ogni proprietà dell'oggetto rappresentato dall'espressione specificata, utilizzando gli attributi HTML specificati.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Restituisce un elemento di input di testo.

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà da visualizzare.

format
String

Stringa usata per la formattazione dell'input.

Restituisce

Elemento input il cui attributo type è impostato su "text".

Si applica a

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, Object)

Restituisce un elemento di input di testo per ogni proprietà dell'oggetto rappresentato dall'espressione specificata, utilizzando gli attributi HTML specificati.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As Object) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento HTML input il cui attributo è impostato su "text" per ogni proprietà dell'oggetto rappresentato dall'espressione.

Eccezioni

Il expression parametro è Null o vuoto.

Si applica a

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, IDictionary<String,Object>)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà da visualizzare.

format
String

Stringa usata per la formattazione dell'input.

htmlAttributes
IDictionary<String,Object>

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento input il cui attributo type è impostato su "text".

Si applica a

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>)

Restituisce un elemento input di tipo testo per ogni proprietà nell'oggetto rappresentato dall'espressione specificata.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty))) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

Restituisce

Elemento HTML input il cui attributo è impostato su "text" per ogni proprietà dell'oggetto rappresentato dall'espressione.

Eccezioni

Il expression parametro è Null o vuoto.

Si applica a

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, IDictionary<String,Object>)

Restituisce un elemento di input di testo per ogni proprietà dell'oggetto rappresentato dall'espressione specificata, utilizzando gli attributi HTML specificati.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà di cui eseguire il rendering.

htmlAttributes
IDictionary<String,Object>

Dizionario contenente gli attributi HTML da impostare per l'elemento.

Restituisce

Un attributo del tipo di elemento di input HTML è impostato su "text" per ogni proprietà dell'oggetto rappresentato dall'espressione.

Eccezioni

Il expression parametro è Null o vuoto.

Si applica a

TextBoxFor<TModel,TProperty>(HtmlHelper<TModel>, Expression<Func<TModel,TProperty>>, String, Object)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBoxFor<TModel,TProperty> (this System.Web.Mvc.HtmlHelper<TModel> htmlHelper, System.Linq.Expressions.Expression<Func<TModel,TProperty>> expression, string format, object htmlAttributes);
static member TextBoxFor : System.Web.Mvc.HtmlHelper<'Model> * System.Linq.Expressions.Expression<Func<'Model, 'Property>> * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBoxFor(Of TModel, TProperty) (htmlHelper As HtmlHelper(Of TModel), expression As Expression(Of Func(Of TModel, TProperty)), format As String, htmlAttributes As Object) As MvcHtmlString

Parametri di tipo

TModel

Tipo del modello.

TProperty

Tipo di valore.

Parametri

htmlHelper
HtmlHelper<TModel>

Istanza dell'helper HTML estesa da questo metodo.

expression
Expression<Func<TModel,TProperty>>

Espressione che identifica l'oggetto contenente le proprietà da visualizzare.

format
String

Stringa usata per la formattazione dell'input.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento input il cui attributo type è impostato su "text".

Si applica a