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. Question about event validation

Question about event validation

Scheduled Pinned Locked Moved Web Development
helpquestionsysadminsecurityworkspace
2 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.
  • S Offline
    S Offline
    Spoks_ST
    wrote on last edited by
    #1

    I have two server controls on page, both have buttons what must postback. One control uses validation and work ok. Other what should not validate input causes 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. I`ve tried to set CausesValidation="False", but it wont help :( Any suggestions? Sorry for my bad english :(

    It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)

    M 1 Reply Last reply
    0
    • S Spoks_ST

      I have two server controls on page, both have buttons what must postback. One control uses validation and work ok. Other what should not validate input causes 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. I`ve tried to set CausesValidation="False", but it wont help :( Any suggestions? Sorry for my bad english :(

      It`s nothing to wory before something happen and when it happents it`s alredy to late to wory! :)

      M Offline
      M Offline
      mrcooll
      wrote on last edited by
      #2

      hi m not following u ,did u tried ValidationsGroup

      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