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