Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. comapre date

comapre date

Scheduled Pinned Locked Moved ASP.NET
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HowRU
    wrote on last edited by
    #1

    //*** validation function dispError() { setPage(); if(document.all("hdnInvallidVendor").value!='') { alert('Invalid vendor number :' + document.all("hdnInvallidVendor").value); document.all("hdnInvallidVendor").value=''; if( document.all("r3").style.display=="block") { document.all("txtVendor").focus(); document.all("txtVendor").select(); } else { document.all("txtVendor7").focus(); document.all("txtVendor7").select(); } } } function chkNumber(con) { var checkOK = '0123456789.'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = true; for (i = 0; i < checkStr.length; i++) { ch = checkStr.charAt(i); if( checkOK.indexOf(ch) == -1) { allValid=false; break; } } if(allValid==false) { alert('Invalid number.'); con.focus(); con.select(); } else { if(con.value!='') { if(parseFloat(con.value)>0) { con.value=parseFloat(con.value); } else { alert("Please enter value greater then zero!"); con.focus(); con.select(); } } } } function chkOrdNumber(con) { var checkOK = '0123456789'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = true; for (i = 0; i < checkStr.length; i++) { ch = checkStr.charAt(i); if( checkOK.indexOf(ch) == -1) { allValid=false; break; } } if(allValid==false) { alert('Invalid number.'); con.focus(); con.select(); } else { if(con.value!='') con.value=parseInt(con.value); } } function chkNumberRS(con) { var checkOK = '0123456789.'; var ch; con.value=Trim(con.value); var checkStr = con.value; var allValid = isNaN(checkStr); if(allValid==true) { alert('Invalid number.'); con.focus(); con.select(); } else { if(parseInt(checkStr)<0) { alert("Plese Enter Postitive Number!"); con.focus(); con.select() } else { if(con.name=='txtOrderAmnt2') { result= chkGreaterLess(con); if(result==false) { con.focus(); con.select(); } else { if(con.value!='') con.value=parseFloat(con.value); } } else { if(con.value!='') con.value=parseFloat(con.value); } } } }

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups