简体   繁体   中英

Displaying the control name that failed event validation in ASP.Net postback

In my application, I am receiving event validation failure, after the upgrade to VS 2010. Weird thing is this kind of validation failure occurs in some of the machines, and in some of them everything works smoothly.

I am unable to find out the control which is failing the post back check. Is there any way to identify the same?

The __EVENTTARGET form field will identify which control was the intended target for the post back. The __EVENTARGUMENT field contains the parameter that was posted to that particular control.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM