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. Error throwing when using Mozilla firefox browser.

Error throwing when using Mozilla firefox browser.

Scheduled Pinned Locked Moved Web Development
helpsysadminsecurityquestionworkspace
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.
  • R Offline
    R Offline
    Rasma Raj
    wrote on last edited by
    #1

    Hi, When i try to selecting an item in a dropdownlist getting 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." This error only showing when i am using the mozilla firefox browser. Can anyone help me to solve this problem? Bunch of thanks in Advance. Rasma www.rasma.cjb.in

    S 1 Reply Last reply
    0
    • R Rasma Raj

      Hi, When i try to selecting an item in a dropdownlist getting 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." This error only showing when i am using the mozilla firefox browser. Can anyone help me to solve this problem? Bunch of thanks in Advance. Rasma www.rasma.cjb.in

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, well as the error is already saying, you have to disable event validation or register the events for validation. This is a security feature to disallow illegal postbacks. I'm guessing you are using some kind of dynamic controls within your app. To solve the problem you can: 1.) Open the web.config and add the the tag <pages enableEventValidation="false"/> 2.) or open the page (in VS) causing the error, switch to HTML Layout, browse to the first line and set EnableEventValidation="false" (or add if it is not there) 3.) or use the ClientScriptManager, but I never did this before... 4.) or don't use dynamically created controls :) Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      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