473,406 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ClientScriptManager.ValidateEvent feature and how to work with it.

This topic is to get some details about the Event Validation feature in
ASP.NET 2.0. I have researched this topic quite a bit via the web, and
understand, for the most part how this works and why this happens. I
do, however, have some questions that I wonder if there may be any
concrete answers for.

First the error message is: "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 am sure everyone familiar with 2.0 and utilizing any kind of DHTML or
AJAX has seen this.

1. We have complex pages that use quite a bit of AJAX and DHTML, but
we think that everything is properly registered and ready to roll. We
capture Exceptions in the Application_Error method in Global.asax and
email the details to the relevant parties. I was wondering if there is
a way to extract the ValidateEvent parameters, uniqueid and argument,
strings that are triggering the exception. I expect the answer is no,
there is not a way, but maybe in a future release of .Net, this could
be added to the Data collection passed in the Base Exception class or
something. Anyone with any insight please feel free to comment.

2. We are pretty sure that the main reason our web application is
generating this error is because the form has not completely rendered
and the user clicks another button or link on the page causing a
postback. Is there any way to prevent this from happening?

Overall I think this is a fine feature. We use a bunch of client side
script so we enjoy the added security. I just wish it was a little
clearer what the culprit was when this Exception is thrown.

TIA,
Chris

Jul 8 '06 #1
1 1985
Buehler?

Jul 14 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: stewart | last post by:
Hi. I have an asp:dropdown control to which I add items on the client, when the page is posted back I get this error message. Invalid postback or callback argument. Event validation is enabled...
3
by: n33470 | last post by:
Hi all, I have a dropDownList on a web page that is populated by client-side script. I get an error on PostBack of the page. I've seen quite a few posts about this, so I understand the issue,...
30
by: Raymond Hettinger | last post by:
Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: >>> map(None,...
0
by: Lloyd Dupont | last post by:
At some stage I'm inherithing from a kind of 'web component' which don't inherit from SWU.Control and have no ClientScript property. However I need to know (in order to make it work) an URL which...
7
by: Varangian | last post by:
Hi all, I have a question, what does the function ClientScriptManager.RegisterForEventValidation really does? Does it means securing your client side code? more security? The question is how...
20
by: Luke R | last post by:
One thing i used to use alot in vb6 was that tiny little button in the bottom left of the code window which allowed you to view either the whole code file, or just the function/sub you are currenly...
2
by: DNB | last post by:
What is the difference between ClientScriptManager.RegisterClientScriptBlock and ClientScriptManager.RegisterClientScript Thanks DNB
1
by: news.rz.uni-karlsruhe.de | last post by:
What exactly is the difference between ScriptManager and ClientScriptManager? Do I use the ScriptManager whenever I use a script on an asp-ajax enabled page and the ClientScriptmanager...
7
by: AAaron123 | last post by:
I read the help on which says: The ClientScriptManager class is used to manage client-side scripts and add them to Web applications... But could use a little help. Can someone tell me what...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.