• 网络学院
  • IT资讯
  • 操作系统
  • 网络技术
  • 软件应用
  • 办公软件
  • 编程技术
  • 网站架设
  • 数据库类
  • 平面设计
  • 多媒体类
  • 游戏资讯
  • 教学论文
  • 认证考试
NET移植案例学习:建造Web站点(7)
  站点:
  • 首 页
  • 最新软件
  • 文章教程
  • 国内软件
  • 国外软件
  • 绿色软件
  • 源码下载
  • 字体下载
NET移植案例学习:建造Web站点(7)
软件发布 NET移植案例学习:建造Web站点(7)
网络软件 系统工具 应用软件 联络聊天 图形图像 多媒体类 行业软件 游戏娱乐 编程开发 安全相关 教育教学 数码软件 绿软下载
热门软件: QQ 瑞星 pplive e话通 木马克星 千千静听 office2000 五笔字根 Photoshop 视频分割
返回文章教程首页 >> 文章首页 >> 编程技术 >> ASP & ASP.NET教程 >> NET移植案例学习:建造Web站点(7)

NET移植案例学习:建造Web站点(7)

添加时间: 2005-6-16 1:22:23  作者: ASP教程收集  阅读次数:31   来源: http://d9soft.com

        图5 客户端的验证逻辑

FormSubmitTest(problemTitle,bugDescription,buildVersion,cboProduct,
appLanguage,cboArea, cboSubArea,severity,build)
{
 var iG;
 var renl = "\r" + "\n";
 iG = 0;
 ResetArrowSize();
 if (problemTitle.value == "" ){ 
  document.images.item("ArrowProbTitle").width=8
  iG++
  }
 if (buildVersion.value == -1){
  document.images.item("ArrowBuildVersion").width=8
  iG++
 }
 if (buildVersion.value == ""){
  document.images.item("ArrowBuildVersion").width=8
  iG++
 }
 if (appLanguage.value == -1){
  document.images.item("ArrowAppLanguage").width=8
  iG++
 }
 if (cboProduct.value == ""){
  document.images.item("ArrowProductName").width=8
  iG++
 }
 if (cboArea.value == ""){
  document.images.item("ArrowProblemArea").width=8
  iG++
 }
 if (cboSubArea.value == ""){
  document.images.item("ArrowProblemSubArea").width=8
  iG++
 }
 if (severity.value == -1){
  document.images.item("ArrowSeverity").width=8
  iG++
 }
 if (bugDescription.value == "Problem Description:" + renl + renl + 
     "Steps to reproduce:" + renl + renl + "Expected behavior:" 
     + renl + renl + "Actual behavior:"+ renl + renl + renl){ 
  document.images.item("ArrowDescription").width=8
  iG++
 }
 if (bugDescription.value == ""){
  document.images.item("ArrowDescription").width=8
  iG++
 }
 if (iG != 0){
  alert("You are missing one or more of the required items 
     (indicated by the red arrow) needed to submit this form.")
  return false;
 }
 else{
  if (document.form1.bugDescription.value == "")
  {
   // don't submit
   alert("Please enter a problem description.")
   return false;
  }
 else{
  if (document.form1.bugDescription.value == "Problem 
     Description: 
     Steps to reproduce: Expected behavior: Actual 
     behavior:")
   {
    // don't submit
    alert("Please enter a problem description.")
    return false;
   }
  else{
   var buildval = build.value;
   var buildlen = buildval.length;
   file://alert(buildlen);
   if (buildlen <= 0)
   {
    var typ = buildVersion.type;
    if (typ == "text") file://build is a text box
    {
     var val = buildVersion.value;
     var len = val.length;
     if ((isNaN(val))  (len != 4))
     {
      // don't submit
      alert("Please enter 'Build' using the 
         format 'NNNN'.")
      return false;
      }
    else
    {
     // concatenate the build number with 
      "07.00.00."
     buildVersion.value = "07.00.00." + 
     buildVersion.value
     // submit
     document.form1.method = "POST"
     document.form1.action = "lamegeneral.asp" 
     return true;
     }
    }
   else
   {
    // submit
    document.form1.method = "POST"
    document.form1.action = "lamegeneral.asp" 
    return true;
    }
   } 
  }
 }
 }
 }
 

  图6 在报告漏洞时选择产品的版本

 

上下文章:

 

上一篇文章: NET移植案例学习:建造Web站点(6) 下一篇文章: ASP.NET中的Code Behind技术(1)

相关文章:

  • 冷备份移植到另一台Solaris机器上
  • Oracle指导:Oracle学习笔记
  • Oracle专家高级编程学习笔记[1]
  • 我的学习总结:Oracle软件结构(1)
  • Oracle10g学习手册1:证书的验证下

相关软件:

  • 21互联学习通 1.0
  • 学习方法宝典 2006 新春贺年版
  • PocketMandarin 汉语拼音学习器 1.0
  • 宝宝爱学习 3.0
  • 宝宝爱学习--算术练习题 1.2
  • 海峰学习课件 1.2

 

快速导航

  • 网络学院
  • 精品汇聚
  • 字体下载
  • 教程下载
  • ASP源码
  • PHP源码
  • Net源码
  • JSP 源码

编程技术分类导航

  • ASP & ASP.NET教程
  • PHP教程
  • JSP教程
  • C/C++教程
  • VB & VB.NET教程
  • VC教程
  • Delphi教程
  • BCB教程
  • VFP教程
  • PB教程
  • JAVA教程
  • XML教程
  • C#教程
  • CGI教程

本类经典文章推荐

  • 九阳神功 ASP.NET技术的学习顺序
  • 在ASP与ASP.NET之间共享对话状态(...
  • 17种正则表达式
  • 关闭窗口时保存数据的办法
  • 一个新的JMail(4.3版本)发送代码
  • 一个很简单的验证码程序
  • 用正则解析图片地址,并利用XMLHTT...
  • 利用ASP+JMAIL进行邮件群发的新思...
  • ASP操作Excel技术总结
  • MD5算法研究(2)

ASP & ASP.NET教程阅读排行

  • 用纯ASP代码实现图片上传
  • ASP数据库简单操作教程
  • aspjpeg组件高级使用方法介绍
  • 一个拷贝整个文件夹(包括子文件夹...
  • 利用ASP技术实现文件直接上传功能
  • 几例在ASP存储过程的使用方法
  • 一个很简单的验证码程序
  • 创建一个ASP通用分页类(一)
  • ASP操作Excel技术总结
  • 一个新的JMail(4.3版本)发送代码

编程技术阅读总排行

  • VB入门教程之一
  • Java连接数据库实例
  • 第二章 PowerBuilder 入门之创建新...
  • VC++之List Box/Check List Box控...
  • 第一章 什么是PowerBuilder
  • VC++ List Ctrl控件
  • VC++ Combo Box/Combo Box Ex控件
  • 学C++不得不看的一篇文章
  • VB入门教程之二
  • VC++之Button控件

广告位置

字母检索 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 回到顶部

关于我们 | 版权声明 | 免责条款 | 广告联系 | 软件发布 | 下载帮助 | 下载排行 | 网站地图 | 特别鸣谢 | 友情连接

copyright; 2005-2008 D9soft.com 第九软件网 版权所有