WAP之家:为您提供最全最新的WAP技术,CP.SP.3G等行业资讯。 WAP之家交流论坛全新开放 点击进入>>
WAP资讯 | 3G动态 | SP动态 | 运营商动态 | 内容商动态 | 制造商动态 | 论坛讨论>> 每次自动访问
WAP技术 | WAP源码 | 手机编程 | 手机源码 | 无线技术 | J2ME技术 | 手机软件 添加到收藏夹
IVR技术 | SP资料 | SMS MMS技术 | 商业方案 | IVR下载 | 书籍教程 | 工具软件 语言:繁體中文

WAP之家技术文章WAP教程网站教程ASP.NET Mobile SelectionList Control

ASP.NET Mobile SelectionList Control
作者:佚名  来源:本站整理  发布时间:2008-3-14 20:46:47

Definition and Usage
定义和用法

The SelectionList control is used to create a list on a mobile device.
SelectionList 控件的作用是:在一个移动设备上创建一张列表。

Differences between a SelectionList control and a List control:
SelectionList 控件和 List 控件之间的不同点:

  • A SelectionList control supports multiple item selections and the List control only supports single item selections
    SelectionList 控件支持多个选项,而List 控件只支持单个选项。
  • A SelectionList control supports drop-down lists, combo boxes, and radio buttons and the List control only supports common lists
    SelectionList 空间支持下拉列表、复选框和多项选择按钮,而List 控件只支持普通列表。
  • An item selected from a SelectionList control does not generate a server event
    SelectionList 控件的项目选项不能产生服务器事件。
  • A SelectionList control does not offer pagination
    SelectionList 控件不能支持“分页”功能

Properties
属性

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
可选参数。指定提取的数据成员(该数据是绑定到数据源的)
DataTextField dataTextField Optional.
可选参数
DataValueField dataValueField Optional.
可选参数
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
OnItemDataBind function_name Optional. The name of the function to be executed when an item is data bound to a MobileListItem object
可选参数。当一个项是绑定到一个MobileListItem 对象的数据时,指定需要执行的函数
 
OnSelectedIndexChanged function_name Optional. The name of the function to be executed when the index of the selected item has changed
可选参数。当已选项的索引数被改变时,执行的函数名称
Rows rows Optional. Specifies the number of rows to display. Default is "4"
可选参数。指定显示的行数。默认值为“4”
runat "server" Required. Specifies that the control is a server control
必要参数。指定该控件为服务器控件
SelectType DropDown
ListBox
Radio
MultiSelectListBox
CheckBox
Optional. Specifies the type of list to display. "DropDown" is default.
可选参数。指定显示的列表样式。默认为“DropDown[下拉菜单]”
StyleReference name_of_style_element Optional. Specifies a reference to a style to be applied to the control
可选参数。指定一个应用于控件的样式参数
Title text Optional. Specifies a title to display. Only for WML devices
可选参数。指定显示的标题。仅支持WML设备
Wrapping wrap
nowrap
Optional. Specifies whether or not the text in the list should wrap
可选参数。指定列表中的文本是否可以被嵌套

[1] [2]  下一页

[] [返回上一页] [打 印]
文章评论

用户名: 查看更多评论

分 值:100分 85分 70分 55分 40分 25分 10分 0分

内 容:

         (注“”为必填内容。) 验证码: 验证码,看不清楚?请点击刷新验证码