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

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

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

Definition and Usage
定义和用法

The RangeValidator control is used to check that the user enters an input  value that falls between two values. It is possible to check ranges within numbers, dates, and characters.
RangeValidator 控件的作用是:检查输入值是否是两个值中的一个。指定的检查范围可以包括:数字、日期、字符。

Note: The validation will not fail if the input control is empty. Use the RequiredFieldValidator control to make the field required.
注意:如果输入控件为空值,那么验证将失败。可以使用RequiredFieldValidator 控件是字段成为必要字段。
 


Properties
属性

Property
属性
Value
Description
描述
Alignment left
center
right
Optional. How to align the control
可选参数。指定控件的排列方式
BackColor rgb(x,x,x)
#xxxxxx
colorname
Optional. A background color for the control
可选参数。指定控件的背景颜色
ControlToValidate id_of_target_control Optional. The id of the control to validate
可选参数。指定参与验证的控件id
Display None
Static
Dynamic
Optional. The display behavior for the validation control. Legal values are:
可选参数。指定确认控件的显示方式。合法值如下:
  • None (the control is not displayed. Used to show the error message only in the ValidationSummary control)
    无效果。(控件不显示。仅显示ValidationSummary 控件的错误信息)
     
  • Static (the control displays an error message if validation fails. Space is reserved on the page for the message if the input passes validation
    静态效果(如果验证失败,则控件显示错误信息。如果输入控件有效,也会为信息保留页面空间)
     
  • Dynamic (the control displays an error message if validation fails. Space is not reserved on the page for the message if the input passes validation
    动态效果(如果验证失败,则控件显示错误信息。即使输入控件有效,也不会为信息保留页面空间)

Dynamic is default
默认为动态样式

ErrorMessage errortext_for_summary Optional. The text to display in the ValidationSummary control when validation fails
可选参数。当验证失败时,将在ValidationSummary 控件中显示文本信息
ForeColor rgb(x,x,x)
#xxxxxx
colorname
Optional. A foreground color for the control
可选参数。指定控件的前景色
Font-Bold false
true
Optional. Specifies whether or not the text in the control should be bold
可选参数。指定控件中的文本字体是否以粗体显示
Font-Italic false
true
Optional. Specifies whether or not the text in the control should be italic
可选参数。指定控件中的文本字体是否以斜体显示
Font-Name fontname Optional. Specifies the font name of the text in the control
可选参数。指定空间中的文本字体名称
Font-Size normal
small
large
Optional. Specifies the font size of the text in the control
可选参数。指定空间中的文本字体尺寸
id unique_name Optional. A unique id for the control
可选参数。为空间指定一个独立的id
MaximumValue max_value Optional. Specifies the maximum value of the control that is validated
可选参数。指定控件的最大有效值
MinimumValue min_value Optional. Specifies the minimum value of the control that is validated
可选参数。指定控件的最小有效值
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
可选参数。指定一个应用于控件的样式参数
Text errortext Optional. The message to display when validation fails
可选参数。当验证失败时,指定显示的信息
Type Currency
Date
Double
Integer
String
Optional. Specifies the data type of the values to compare
可选参数。指定参与比较的值的日期类型
Wrapping wrap
nowrap
Optional. Specifies whether or not the text in the control should wrap
可选参数。指定控件中的文本是否允许被嵌套

[1] [2]  下一页

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

用户名: 查看更多评论

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

内 容:

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