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. JavaScript
  4. Problem with args.isValid in JS

Problem with args.isValid in JS

Scheduled Pinned Locked Moved JavaScript
javascriptsysadminhelp
4 Posts 2 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.
  • D Offline
    D Offline
    dayakar_dn
    wrote on last edited by
    #1

    Hi, i am not able set the args.isValid as false for JS function...which is not having custom validator.. find the code below:

    <asp:LinkButton runat="server" ID="btnApply" TabIndex="1" CssClass=" primary" OnClientClick = "return ApplyClick(this);" >

    JS Code:

    function Applyclick(args) {

    if (errMsg != null) {
    args.IsValid = false;

                      }
    

    return false;
    }

    thanks in advance

    M 1 Reply Last reply
    0
    • D dayakar_dn

      Hi, i am not able set the args.isValid as false for JS function...which is not having custom validator.. find the code below:

      <asp:LinkButton runat="server" ID="btnApply" TabIndex="1" CssClass=" primary" OnClientClick = "return ApplyClick(this);" >

      JS Code:

      function Applyclick(args) {

      if (errMsg != null) {
      args.IsValid = false;

                        }
      

      return false;
      }

      thanks in advance

      M Offline
      M Offline
      Mohibur Rashid
      wrote on last edited by
      #2

      I am sorry I dont know asp.net but yet what is args and who is calling ApplyPromotionClick ???

      I know I am coward since the day I know that fortune favors the brave

      D 1 Reply Last reply
      0
      • M Mohibur Rashid

        I am sorry I dont know asp.net but yet what is args and who is calling ApplyPromotionClick ???

        I know I am coward since the day I know that fortune favors the brave

        D Offline
        D Offline
        dayakar_dn
        wrote on last edited by
        #3

        Sorry function name should be applyclick

        M 1 Reply Last reply
        0
        • D dayakar_dn

          Sorry function name should be applyclick

          M Offline
          M Offline
          Mohibur Rashid
          wrote on last edited by
          #4

          In that case Check your Firefox or Chrome error message. I cant recall any html object property IsValid. I think you need to say more clearly what you need

          I know I am coward since the day I know that fortune favors the brave

          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