ASP.NET Control to HTML tag equivalent

This isn’t a simple question, as it depends on which version of .NEt you’re talking about and states of controls sometimes. For example, the PANEL, in 1 & 1.1 render to a TABLE while in later versions it’s a DIV.

But overall (for 2/3), here goes:

  • Panel – Div

  • Panel — GroupingText=”###” is Fieldset, Legend

  • Label – Span

  • Button – Input, Type Button

  • Link Button – Href with JS Postback Script

  • Hyperlink – Standard HREF

  • Image Button – Input, Type Image

  • Textbox — Default is Input, Type Text

  • Textbox — Mode = Password is Input, type Password

  • Textbox — Mode= Multiline is Textarea

  • DropDownList – Select

  • Listbox – Select

  • RadioButton – Input, Radio with GroupName

  • Checkbox – Input, Checkbox

  • Repeater/Listview –Complex.

  • Gridview – Table

  • Table – Table

  • File – Input, Type=File

    That’s the basics. The more esoteric controls such as the LOGIN control is a table with a bunch of odds an ends within it.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)