Make sure any label control that describes a textbox control immediately precedes the textbox control in the tab order 确保任何描述文本框控件的标签控件的tab键顺序紧排在相应文本框控件之前。
Add the following code to decrease the counter value by one and to display the counter s value in the first of the label controls 添加以下代码,使计数器值减少1 ,并在第一个标签控件中显示计数器的值。
Add the following code to add one to your custom counter and to display the counter s value in the first of the label controls 添加以下代码,使自定义计数器增加1 ,并在第一个标签控件中显示计数器的值。
In this part of the walkthrough , you will add a button , text box , and label control to the page and write code to handle the button s 在本部分演练中,将向该页添加一个按钮、文本框和标签控件,并编写代码处理按钮的
Add the following code to set the raw value of the counter you created and to display the counter s value in the first of the label controls 添加以下代码,设置所创建的计数器的原始值,并在第一个标签控件中显示计数器的值。
An individual data - bound control for each column or property is created on the form , accompanied by an appropriately titled label control 即在该窗体上为每列或每个属性创建了单个数据绑定控件,该控件带有具有适当标题的标签控件。
Add the following code to increase the counter value by the value entered in the text box and to display the counter s value in the first of the label controls 添加以下代码,使计数器值增加文本框中输入的值,并在第一个标签控件中显示计数器的值。
For each column or property you drag , an individual data - bound control is created on the form , accompanied by an appropriately titled label control 对于拖动的每列或每个属性,即在该窗体上为其创建了单个数据绑定控件,该控件带有具有适当标题的标签控件。
The main form contains the combo box controls , button controls to load data , and two label controls and a grid to display the data source and the selected value 主窗体包含组合框控件、加载数据的按钮控件,以及显示数据源和选定值的两个标签控件和一个网格。
However , although the individual server controls contained in the user control could be contained directly in the zone like the label control , in this case they are not 虽然用户控件中包含的各个服务器控件都可直接包含在该区域中(类似标签控件) ,但在本演练中不是。