博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ASP工作积累
阅读量:4624 次
发布时间:2019-06-09

本文共 870 字,大约阅读时间需要 2 分钟。

1.枚举

cataid=checkstr(request("cataid"),1)

select case cataid
    case 1
        ntitle="新闻"
    case 2
        ntitle="广告"
    case 3
        ntitle="书籍"
    case 4
        ntitle="名师"
    case 9
        ntitle="频道"
end select

2.验证

if (document.myform.lesson_up.value == ""){

            alert("请选择科目!");
            document.myform.lesson_up.focus();
            return false;
        }
    if (!isNumber(document.myform.FeePrice.value)){
            alert("请输正确的代报名费价格!");
            document.myform.FeePrice.focus();
            return false;
        }

function isNumber(oNum)

{
    if(!oNum) return false;
    var strP=/^\d+(\.\d+)?$/;
    if(!strP.test(oNum)) return false;
    try{
      if(parseFloat(oNum)!=oNum) return false;
    }
    catch(ex){
      return false;
    }
    return true;
}

 

3.添加之后刷新

response.Write "<script language='javascript'>"

response.Write "alert('删除成功!');"
response.Write "window.close();"
response.Write "window.opener.location.reload();"
response.Write "</script>"

转载于:https://www.cnblogs.com/360S/archive/2012/06/11/2544646.html

你可能感兴趣的文章
Luogu4069 SDOI2016 游戏 树链剖分、李超线段树
查看>>
Java的内部类真的那么难以理解?
查看>>
一文搞懂Java环境,轻松实现Hello World!
查看>>
hash实现锚点平滑滚动定位
查看>>
也谈智能手机游戏开发中的分辨率自适应问题
查看>>
关于 IOS 发布的点点滴滴记录(一)
查看>>
《EMCAScript6入门》读书笔记——14.Promise对象
查看>>
CSS——水平/垂直居中
查看>>
Eclipse连接mysql数据库jdbc下载(图文)
查看>>
Python中Selenium的使用方法
查看>>
三月23日测试Fiddler
查看>>
20171013_数据库新环境后期操作
查看>>
SpringMVC中文件的上传(上传到服务器)和下载问题(二)--------下载
查看>>
Socket & TCP &HTTP
查看>>
osip及eXosip的编译方法
查看>>
Hibernate composite key
查看>>
[CF Round #294 div2] D. A and B and Interesting Substrings 【Map】
查看>>
keepalived+nginx安装配置
查看>>
Git的安装和使用教程详解
查看>>
lsof命令详解
查看>>