此选项卡显示可以添加到 ASP.NET 网页中的 ASP.NET 服务器控件的列表。 此选项卡在“设计”视图和“源”视图中都可用。
备注
通过从工具箱的“HTML”选项卡添加元素,然后将它们转换成控件,也可以在 Web 窗体页上创建 HTML 服务器控件。有关这些控件之间差异的信息,请参见 ASP.NET 服务器控件简介。
访问工具箱中的“标准”选项卡
在 Microsoft Visual Web Developer 中,单击**“视图”,然后单击“工具箱”**。
或者,可以按 Ctrl+Alt+X。
在**“工具箱”**中,单击 “标准” 菜单项旁边的箭头符号 (>)。
这将展开标准工具的列表。
默认情况下,工具箱显示在“Visual Web Developer”窗口的左侧,但可以拖动标题栏来移动工具箱。
将工具箱还原到它的原始位置
右击标题栏,并选择**“停靠”**。
这将使**“工具箱”**成为 Visual Web Developer 设计图面的一部分。
单击标题栏,并开始拖动它,以显示目标箭头。
拖动标题栏,以使鼠标指针位于指向左侧的目标箭头的上方,然后释放鼠标按钮。
有关使用在工具箱的“标准”选项卡中可用的服务器控件的更多信息,请参见 Standard Toolbox Controls。
任务
How to: Add BulletedList Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add CheckBox Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add CheckBoxList Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add DropDownList Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add HyperLink Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Image Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add ImageMap Web Server Controls to a Web Page (Visual Studio)
How to: Add Items in List Web Server Controls (Visual Studio)
How to: Add Label Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add ListBox Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Literal Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Localize Web Server Controls to ASP.NET Web Pages
How to: Add MultiView Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add PlaceHolder Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add RadioButton Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add RadioButtonList Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Repeater Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Table Web Server Controls to a Web Forms Page (Visual Studio)
How to: Add Web Server Controls to a Web Forms Page Using the Web Forms Designer
How to: Add XML Web Server Controls to a Web Forms Page (Visual Studio)
How to: Format Calendar Web Server Control Elements Using Styles
How to: Populate List Web Server Controls from a Data Source (Visual Studio)
How to: Respond to User Clicks in BulletedList Web Server Controls (Visual Studio)
How to: Set the Selection in List Web Server Controls (Visual Studio)
How to: Use Resources to Set Property Values in Web Server Controls (Visual Studio)
Walkthrough: Displaying and Tracking Advertisements with the AdRotator Control
UI 元素
AdRotator
显示图像序列(预定义或随机)。BulletedList
显示绑定到数据源的项目符号列表(或相似变体)。按钮
将 Web 窗体页提交给服务器进行处理。Calendar
显示日历以允许用户选择日期。CheckBox
显示用户可以选择或清除的单个框。CheckBoxList
创建一组复选框。 该列表控件 (List Control) 使得可以使用数据绑定轻松创建复选框。DropDownList
允许用户或者从列表中选择或者输入文本。FileUpload
创建含文本框和按钮的控件,它可以用来指定从本地计算机上载到服务器的文件,并且可以用服务器代码编程。HiddenField
创建可以用服务器代码编程的 HTML <input type=hidden> 元素。HyperLink
创建一个 Web 导航链接。图像
显示图像。ImageButton
与 Button 控件一样,但包含图像而不是文本。ImageMap
显示图像,该图像将公开用户可单击的区域。标签
显示用户无法直接编辑的文本。LinkButton
与 Button 控件一样,但具有超链接的外观。ListBox
显示选择列表。 列表可以允许多重选择(可选)。文本
呈现为文本(无 HTML 标记),以提供一种将文本放入服务器代码所产生的页面中的简便方法。Localize
您可以在页的特定区域中显示本地化后的文本。Panel
在窗体上创建无边框间隔区域,用作其他控件的容器。PlaceHolder
提供一个容器,以存储动态添加到网页中的服务器控件。 它不生成任何可见输出,只用作网页上其他控件的容器。RadioButton
显示可以选择或清除的单个按钮。RadioButtonList
创建一组单选按钮。 在组内,一次只能选择一个按钮。替换
包含可更新的缓存内容。表
创建作为服务器控件的表。 可以在服务器代码中添加行和列。备注
如果要在布局中使用表,请使用 HTML 表,而不要使用 Table 服务器控件。有关详细信息,请参见 HTML Table Editing in Visual Studio。
TextBox
显示设计时输入的文本,用户可以在运行时编辑此文本,或者编程更改此文本。向导
显示可引导用户执行某过程的多窗格控件。XML
显示来自 XML 文件或流的信息,还可以用于应用 XSLT 转换。