ASP.NET Mobile List Control[转]
Definition and Usage
|
| Property 属性 |
Value 值 |
Description 描述 |
|---|---|---|
| Alignment | left center right |
Optional. How to align the list 可选参数。指定列表的对齐方式 |
| BackColor | rgb(x,x,x) #xxxxxx colorname |
Optional. A background color for the list 可选参数。指定列表的背景颜色 |
| DataMember | dataMember | Optional. Specifies the data member to extract in data binding to a data source 可选参数。指定从绑定到数据源中的数据所提取的数据成员 |
| DataSource | dataSource | Optional. Specifies the data source the control will be bound to 可选参数。指定控件将要被绑定到的数据源 |
| DataTextField | dataTextField | Optional. 可选参数 |
| DataValueField | dataValueField | Optional. 可选参数 |
| Decoration | None Bulleted Numbered |
Optional. Specifies the type of decoration used for items in the list 可选参数。指定用于列表项的声明类型 |
| ForeColor | rgb(x,x,x) #xxxxxx colorname |
Optional. A foreground color for the list 可选参数。指定列表的前景色 |
| Font-Bold | false true |
Optional. Specifies whether or not the text in the list should be bold 可选参数。指定列表文本中的字体是否以粗体显示 |
| Font-Italic | false true |
Optional. Specifies whether or not the text in the list should be italic 可选参数。指定列表文本中的字体是否以斜体显示 |
| Font-Name | fontname | Optional. Specifies the font name of the text in the list 可选参数。指定列表文本中的字体名称 |
| Font-Size | normal small large |
Optional. Specifies the font size of the text in the list 可选参数。指定列表文本中的字体尺寸 |
| id | unique_name | Optional. A unique id for the control 可选参数。为控件指定一个独立的id |
| ItemsAsLinks | true false |
Optional. Whether or not the items in the list are to be treated as hyperlinks. Default is false 可选参数。指定是否将列表中的项是为一个超链接。默认为false |
| ItemCount | itemCount | Optional. 可选参数。 |
| OnItemCommand | function_name | Optional. The name of the function to be executed when an individual list item generates an event 可选参数。当一个单独的列表项产生一个事件时,指定被执行的函数名称 |
| OnItemDataBind | function_name | Optional. The name of the function to be executed when an item is data bound to a MobileListItem object 可选参数。当一个项被绑定到一个MobileListitem对象时,指定需要执行的函数名称 |
| OnLoadItems | function_name | Optional. The name of the function to be executed when the items are to be loaded 可选参数。当指定项被加载时,制定被执行的函数名称 |
| runat | "server" | Required. Specifies that the control is a server control 必要参数。指定某控件为一个服务器控件 |
| StyleReference | name_of_style_element | Optional. Specifies a reference to a style to be applied to the control 可选参数。指定一个应用于控件的样式参数 |
| Wrapping | wrap nowrap |
Optional. Specifies whether or not the text in the list should wrap 可选参数。指定列表中的文本是否可以被嵌套 |
Example 1
案例1
The following example is an .aspx page with two forms. The first form has a list of cars. The second form is activated when a car is selected in the first form, and it displays the price of the selected car:
下面这个案例包含一个位于.aspx文件中的表单控件。第一张表单是一个汽车列表;当在第一张表单种选择具体的汽车时,第二张表单将被激活,并显示所选车型所对应的价格:
<%@ Page <script runat="server"> <Mobile:Form id="f1" runat="server"> <Mobile:Form id="f2" runat="server"> |
浙公网安备 33010602011771号