InputExtensions.TextBox Metodo

Definizione

Overload

TextBox(HtmlHelper, String, Object, String, Object)

Restituisce un elemento di input di testo.

TextBox(HtmlHelper, String, Object, String, IDictionary<String,Object>)

Restituisce un elemento di input di testo.

TextBox(HtmlHelper, String, Object, String)

Restituisce un elemento di input di testo.

TextBox(HtmlHelper, String, Object)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo e il valore.

TextBox(HtmlHelper, String, Object, IDictionary<String,Object>)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo, il valore e gli attributi HTML.

TextBox(HtmlHelper, String)

Restituisce un elemento input di tipo testo utilizzando l'helper HTML e il nome del campo del form specificati.

TextBox(HtmlHelper, String, Object, Object)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo, il valore e gli attributi HTML.

TextBox(HtmlHelper, String, Object, String, Object)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value, string format, object htmlAttributes);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object, format As String, htmlAttributes As Object) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

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

TextBox(HtmlHelper, String, Object, String, IDictionary<String,Object>)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value, string format, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj * string * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object, format As String, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

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

TextBox(HtmlHelper, String, Object, String)

Restituisce un elemento di input di testo.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value, string format);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object, format As String) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo del form.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

format
String

Stringa usata per la formattazione dell'input.

Restituisce

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

Si applica a

TextBox(HtmlHelper, String, Object)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo e il valore.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

Restituisce

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

Si applica a

TextBox(HtmlHelper, String, Object, IDictionary<String,Object>)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo, il valore e gli attributi HTML.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

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

TextBox(HtmlHelper, String)

Restituisce un elemento input di tipo testo utilizzando l'helper HTML e il nome del campo del form specificati.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name);
static member TextBox : System.Web.Mvc.HtmlHelper * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

Restituisce

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

Si applica a

TextBox(HtmlHelper, String, Object, Object)

Restituisce un elemento di input di testo usando l'helper HTML specificato, il nome del campo del modulo, il valore e gli attributi HTML.

public static System.Web.Mvc.MvcHtmlString TextBox (this System.Web.Mvc.HtmlHelper htmlHelper, string name, object value, object htmlAttributes);
static member TextBox : System.Web.Mvc.HtmlHelper * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function TextBox (htmlHelper As HtmlHelper, name As String, value As Object, htmlAttributes As Object) As MvcHtmlString

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

name
String

Nome del campo modulo e della ViewDataDictionary chiave utilizzata per cercare il valore.

value
Object

Valore dell'elemento input di tipo testo. Il valore viene recuperato in questo ordine: l'oggetto, il valore di questo parametro, l'oggetto ModelStateDictionaryViewDataDictionary e infine un attributo value negli attributi html.

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