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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem in postback after populating dropdown using clientside script

Problem in postback after populating dropdown using clientside script

Scheduled Pinned Locked Moved ASP.NET
helpjavascriptsysadminsecuritytools
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.
  • C Offline
    C Offline
    CrazyCoder26
    wrote on last edited by
    #1

    Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get the following error : Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Please give me a solution to this problem.

    CC26

    L 1 Reply Last reply
    0
    • C CrazyCoder26

      Hi, I have populated a dropdownlist using javascript.After that whenever I post the page using any button or anything I get the following error : Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation. Please give me a solution to this problem.

      CC26

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      set: EnableEventValidation="false" this will solve your problem

      Regards Aman Bhullar www.arlivesupport.com[^]

      C 2 Replies Last reply
      0
      • L Lost User

        set: EnableEventValidation="false" this will solve your problem

        Regards Aman Bhullar www.arlivesupport.com[^]

        C Offline
        C Offline
        CrazyCoder26
        wrote on last edited by
        #3

        will it affect any other control's event?

        CC26

        1 Reply Last reply
        0
        • L Lost User

          set: EnableEventValidation="false" this will solve your problem

          Regards Aman Bhullar www.arlivesupport.com[^]

          C Offline
          C Offline
          CrazyCoder26
          wrote on last edited by
          #4

          It works.thanks

          CC26

          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