ASP.NET Control to HTML tag equivalent

后端 未结 5 1826
野性不改
野性不改 2020-12-07 09:19

I\'m looking for a cheat sheet that will allow me to show an HTML designer the equivalent asp.net controls for standard HTML tags. As an example the will ren

5条回答
  •  生来不讨喜
    2020-12-07 09:46

    Stephen's list is pretty comprehensive. I'd add the following notes to it though:

    Mostly it depends on the known BrowserCaps.

    A 1.x Panel will render as a div in IE6+ - however in Firefox (or other "DownStream" browsers - considered DownStream because there were no details of it in the Machine.Config by default) it will render as a single cell Table - this could be resolved by supplying updated BrowserCaps for Firefox/Opera/Safari/etc, either in the Machine.Config or Web.Configs.

    Also, Control Adapters can change the output - for example the CSS Control Adapters will output styled divs for most of the tabular controls (login, registration, repeaters, etc).

    Note that it was announced at TechEd/PDC that ASP.NET 4.0 will have the CSS control adapters built in by default.

提交回复
热议问题