现在的位置: 首页 > 综合 > 正文

RangeValidator用法

2013年02月03日 ⁄ 综合 ⁄ 共 520字 ⁄ 字号 评论关闭
function CheckReportKind(source,args)
  {
      var DeathDate = document.getElementById("<%=TxtDeathDate.ClientID%>");
      var ReportKind = document.getElementById("<%=CmbReportKind.ClientID%>");
      if (CheckEmpty(DeathDate.value))
      {
          if (ReportKind.selectedIndex == 0)
          {
              args.IsValid = false;
              return;
          }
      } 
      else
      {
          if (ReportKind.selectedIndex != 0)
          {
              args.IsValid = false;
              return;
          }
      }
          
      args.IsValid = true;     
  } 

抱歉!评论已关闭.