百度空间 | 百度首页 
 
查看文章
 
Asp.net中Scrip请教,高手看一下,问题在哪里...
2009-04-25 10:14
<head runat="server">
<title>验证演示</title>
<script language="vbscript">
<!--
Sub Validate()
If IsNumeric(form1.Text1.Value)then
IF form1.Text1.Value >= 0 or form1.Text1.Value <= 100
Then
Msgbox "请输入一个0到100的数字"
Else
msgbox "输入正确"
End if
Else
Msgbox "请输入一个数字"
Endif
End Sub
-->
</script>
</head>
<body>
<form id="form1" action="Default.aspx" onsubmit="Validate()" >
<input name="Text1" id="Text1" type="text" />
<input name="Submit" id="Submit1" type="submit" value="submit" />

</form>
</body>
问题补充:无法检测数据,没有弹出对话框

类别:学习 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu