• Home
  • Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • ToSic.Razor.Blade
      • IHtmlTag
      • IHtmlTagsService
      • IScrub
      • Tag
      • Tags
      • Text
    • ToSic.Razor.Html5
      • A
      • Abbr
      • Address
      • Area
      • Article
      • Aside
      • Audio
      • B
      • Base
      • Bdi
      • Bdo
      • Blockquote
      • Br
      • Button
      • Canvas
      • Caption
      • Cite
      • Code
      • Col
      • Colgroup
      • Comment
      • Data
      • Datalist
      • Dd
      • Del
      • Details
      • Dfn
      • Dialog
      • Div
      • Dl
      • Dt
      • Em
      • Embed
      • Fieldset
      • Figcaption
      • Figure
      • Footer
      • Form
      • H1
      • H2
      • H3
      • H4
      • H5
      • H6
      • Head
      • Header
      • Hr
      • I
      • Icon
      • Iframe
      • Img
      • Input
      • Ins
      • Kbd
      • Label
      • Legend
      • Li
      • Link
      • Main
      • Map
      • Mark
      • Meta
      • MetaOg
      • Meter
      • Nav
      • Noscript
      • Object
      • Ol
      • Optgroup
      • Option
      • Output
      • P
      • Param
      • Picture
      • Pre
      • Progress
      • Q
      • Rp
      • Rt
      • Ruby
      • S
      • Samp
      • Script
      • ScriptJsonLd
      • Section
      • Select
      • Small
      • Source
      • Span
      • Strong
      • Style
      • Sub
      • Summary
      • Sup
      • Svg
      • Table
      • Tbody
      • Td
      • Template
      • Textarea
      • Tfoot
      • Th
      • Thead
      • Time
      • Tr
      • Track
      • U
      • Ul
      • Var
      • Video
      • Wbr
    • ToSic.Razor.Markup
      • Attribute
      • AttributeOptions
      • Attributes
      • ITag
      • Tag<T>
      • TagBase
      • TagChildren
      • TagCustom
      • TagList
      • TagOptions
      • TagText
    • ToSic.Razor.StartUp
      • StartUp

    Class Input

    Generate a standard HTML5 <input> tag

    Inheritance
    System.Object
    ToSic.Razor.Markup.RawHtmlString
    TagBase
    Tag<Input>
    Input
    Implements
    System.Web.IHtmlString
    IHtmlTag
    ITag
    System.Collections.Generic.IEnumerable<ITag>
    System.Collections.IEnumerable
    Inherited Members
    Tag<Input>.Attr(String, Object, String)
    Tag<Input>.Attr(Object)
    Tag<Input>.Id(String)
    Tag<Input>.Class(String)
    Tag<Input>.Style(String)
    Tag<Input>.Title(String)
    Tag<Input>.Data(String, Object)
    Tag<Input>.On(String, Object)
    Tag<Input>.Add(Object[])
    Tag<Input>.Wrap(Object[])
    Tag<Input>.AsHtmlTag()
    TagBase.IsImmutable
    TagBase.PreProcessNewChild(Object)
    TagBase.ApplyChanges(CloneChanges)
    TagBase.TagName
    TagBase.TagOptions
    TagBase.ToString()
    TagBase.TagAttributes
    TagBase.TagChildren
    TagBase.TagStart
    TagBase.TagEnd
    Namespace: ToSic.Razor.Html5
    Assembly: ToSic.Razor.dll
    Syntax
    public class Input : Tag<Input>, IRawHtmlString, IHtmlString, IHtmlTag, ITag, IEnumerable<ITag>, IEnumerable

    Methods

    | Improve this Doc View Source

    Accept(String)

    Set the accept attribute on the <input> tag

    Declaration
    public Input Accept(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in accept='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Alt(String)

    Set the alt attribute on the <input> tag

    Declaration
    public Input Alt(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in alt='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Autocomplete(String)

    Set the autocomplete attribute on the <input> tag

    Declaration
    public Input Autocomplete(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in autocomplete='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Autofocus()

    Activate the autofocus attribute on the <input> tag

    Declaration
    public Input Autofocus()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Autofocus(String)

    Set the autofocus attribute on the <input> tag

    Declaration
    public Input Autofocus(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in autofocus='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Checked()

    Activate the checked attribute on the <input> tag

    Declaration
    public Input Checked()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Checked(String)

    Set the checked attribute on the <input> tag

    Declaration
    public Input Checked(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in checked='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Dirname(String)

    Set the dirname attribute on the <input> tag

    Declaration
    public Input Dirname(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in dirname='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Disabled()

    Activate the disabled attribute on the <input> tag

    Declaration
    public Input Disabled()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Disabled(String)

    Set the disabled attribute on the <input> tag

    Declaration
    public Input Disabled(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in disabled='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Form(String)

    Set the form attribute on the <input> tag

    Declaration
    public Input Form(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in form='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formaction(String)

    Set the formaction attribute on the <input> tag

    Declaration
    public Input Formaction(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in formaction='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formenctype(String)

    Set the formenctype attribute on the <input> tag

    Declaration
    public Input Formenctype(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in formenctype='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formmethod(String)

    Set the formmethod attribute on the <input> tag

    Declaration
    public Input Formmethod(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in formmethod='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formnovalidate()

    Activate the formnovalidate attribute on the <input> tag

    Declaration
    public Input Formnovalidate()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formnovalidate(String)

    Set the formnovalidate attribute on the <input> tag

    Declaration
    public Input Formnovalidate(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in formnovalidate='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Formtarget(String)

    Set the formtarget attribute on the <input> tag

    Declaration
    public Input Formtarget(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in formtarget='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Height(String)

    Set the height attribute on the <input> tag

    Declaration
    public Input Height(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in height='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    List(String)

    Set the list attribute on the <input> tag

    Declaration
    public Input List(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in list='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Max(String)

    Set the max attribute on the <input> tag

    Declaration
    public Input Max(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in max='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Maxlength(String)

    Set the maxlength attribute on the <input> tag

    Declaration
    public Input Maxlength(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in maxlength='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Min(String)

    Set the min attribute on the <input> tag

    Declaration
    public Input Min(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in min='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Multiple()

    Activate the multiple attribute on the <input> tag

    Declaration
    public Input Multiple()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Multiple(String)

    Set the multiple attribute on the <input> tag

    Declaration
    public Input Multiple(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in multiple='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Name(String)

    Set the name attribute on the <input> tag

    Declaration
    public Input Name(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in name='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Pattern(String)

    Set the pattern attribute on the <input> tag

    Declaration
    public Input Pattern(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in pattern='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Placeholder(String)

    Set the placeholder attribute on the <input> tag

    Declaration
    public Input Placeholder(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in placeholder='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Readonly()

    Activate the readonly attribute on the <input> tag

    Declaration
    public Input Readonly()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Readonly(String)

    Set the readonly attribute on the <input> tag

    Declaration
    public Input Readonly(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in readonly='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Required()

    Activate the required attribute on the <input> tag

    Declaration
    public Input Required()
    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Required(String)

    Set the required attribute on the <input> tag

    Declaration
    public Input Required(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in required='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Size(String)

    Set the size attribute on the <input> tag

    Declaration
    public Input Size(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in size='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Src(String)

    Set the src attribute on the <input> tag Automatically url-encode it if contains spaces, umlauts or other unexpected chars

    Declaration
    public Input Src(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in src='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Step(String)

    Set the step attribute on the <input> tag

    Declaration
    public Input Step(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in step='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Type(String)

    Set the type attribute on the <input> tag

    Declaration
    public Input Type(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in type='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Value(String)

    Set the value attribute on the <input> tag

    Declaration
    public Input Value(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in value='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    | Improve this Doc View Source

    Width(String)

    Set the width attribute on the <input> tag

    Declaration
    public Input Width(string value)
    Parameters
    Type Name Description
    System.String value

    what should be in width='...'. If called multiple times, later values replace the previous value.

    Returns
    Type Description
    Input

    a Input object to enable fluid command chaining

    Implements

    System.Web.IHtmlString
    IHtmlTag
    ITag
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX