studycustomvalidator.aspx.vb
来自「该文件包括了WEB标单控件应用的所有实例代码」· VB 代码 · 共 23 行
VB
23 行
Partial Class studyCustomValidator
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Sub ClientSideValidator(ByVal source, ByVal arguments)
If (arguments.Value = 1 Or arguments.Value = 5 Or arguments.Value = 9) Then
arguments.lsValid=true
Else
arguments.lsValid = False
End If
End Sub
End Class
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?