asp判断字符是否是英文字符

时间:2009-03-25    点击:1860   
<%
'判断字符Char是否是英文字符
Public Function IsAlphabet(ByVal Char)
Dim AscValue
AscValue = CInt(Asc(Char))
If (65 <= AscValue and AscValue <= 90) or (97 <= AscValue and AscValue <= 122) Then
IsAlphabet = True
Else
IsAlphabet = False
End if
End Function
%>
<form name="form1" method="post" action="">
  输入字符:
  <input name="text" type="text" id="text" maxlength="1">
  <input type="submit" name="Submit" value="提交">
</form>
<%
Dim X
X=Request.Form("text")
If X<>"" Then
%>
<p>输入的字符为:<%=X%></p>
<p>是英文字符吗?<%=IsAlphabet(X)%></p>
<%
End If
%>
层在flash下面的解决方法
验证视图状态 MAC 失败
asp创建和调整动态数组
asp计算中英文混合字符串的长度
asp判断字符串是否以指定字符串开头或结尾
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved