ASP.NET控件的HTML标签相当于 [英] ASP.NET Control to HTML tag equivalent

查看:199
本文介绍了ASP.NET控件的HTML标签相当于的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找一个备忘单,让我显示一个HTML设计师为标准的HTML标签相当于asp.net控制。作为一个例子的< ASP:面板>将呈现为一个HTML< D​​IV>和< ASP:标签>将呈现为一个HTML<跨度>。我一直在Google上搜寻这无济于事。有人可以张贴一个链接到一个很好的备忘单,以便在这个项目上的设计人员可以更清楚地了解在aspx页面的标记。

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 <asp:Panel> will render as an HTML <div> and an <asp:Label> will render as an HTML <span>. I've been googling this to no avail. Can someone post a link to a good cheat sheet so that the designers on this project can understand the markup on the aspx pages more clearly.

要清楚,我想一个链接到主要ASP.NET控件列表,以描述为,他们将如何与标准的HTML。这将是巨大的,如果这是在PDF格式或在一个易于阅读和打印网页。究其原因,在我的情况,将是我们有一个PHP开发谁是非常熟悉HTML来对我们的项目工作,我觉得这将是有益的有更好的理解标准ASP.NET服务器控件的,如果我能递给他这样的小抄。

To be clear, I would like a link to a list of major ASP.NET controls, with descriptions as to how they would relate to standard HTML. It would be great if this were in PDF format or on an easy to read and print web page. The reason, in my case, would be that we have a PHP developer who is very familiar with HTML coming to work on our project, and I feel it would be useful to have a better understanding of standard ASP.NET server controls if I could hand him such a "cheat sheet".

我主要指的是.NET 2.0框架,但我们也在做工作,3.0 / 3.5。

I'm referring mainly to the .NET 2.0 framework, but we are also doing work with 3.0/3.5.

推荐答案

这不是一个简单的问题,因为它依赖于哪个版本你说.NET约有时控件的状态。例如,小组在1安培; 1.1渲染到一个表,而在以后的版本这是一个DIV。

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.

但总体(2/3),这里有云:

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


  • 面板 - 事业部

  • 面板 - GroupingText =###是字段集,联想

  • 标签 - 跨度

  • 按钮 - 输入,类型按钮

  • 链接按钮 - HREF用JS脚本回发

  • 超链接 - 标准HREF

  • 图像按钮 - 输入,类型图像

  • 文本框 - 默认输入,输入文字

  • 文本框 - 模式=输入密码后,输入密码

  • 文本框 - 模式=多行是行文本

  • 的DropDownList - 选择

  • 列表框 - 选择

  • 单选按钮 - 输入,收音机组名

  • 复选框 - 输入,多选

  • 直放站/列表视图--Complex。

  • 的GridView - 表

  • 表 - 表

  • 文件 - 输入,类型=文件

  • 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

这就是基础知识。更深奥的控制,如Login控件是在其中一帮一的赔率两端的表。

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.

这篇关于ASP.NET控件的HTML标签相当于的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆