Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / January 2008

Tip: Looking for answers? Try searching our database.

Error Message in ASP.NET 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Techeek - 06 Jan 2008 15:40 GMT
I am getting this error on click of a link button. If anbody has
got the same error and have a solution for it plese respond.

System.ArgumentException: 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.
Signature

techeek
http://oxyin.com/techeek

Misbah Arefin - 16 Jan 2008 08:10 GMT
One solution (although not the best solution) try adding this into the
<system.web> section of your web.config file:

<pages enableEventValidation="false" />

Another solution is to register your control for event validation. Simply
add the following call in the PreRender or Render page life cycle then your
control should work without having to turn off eventValidation:

     Page.ClientScript.RegisterForEventValidation(this.UniqueID);

Signature

Misbah Arefin

> I am getting this error on click of a link button. If anbody has
> got the same error and have a solution for it plese respond.
[quoted text clipped - 9 lines]
> ClientScriptManager.RegisterForEventValidation
> method in order to register the postback or callback data for validation.
Sanket Sirotiya - 29 Jan 2008 09:08 GMT
<%@ Page EnableEventValidation="false" %> is the best way to overcome this.

Signature

Thanks,
Sanket Sirotiya
(sanket.sirotiya@yahoo.com)

> One solution (although not the best solution) try adding this into the
> <system.web> section of your web.config file:
[quoted text clipped - 22 lines]
>> ClientScriptManager.RegisterForEventValidation
>> method in order to register the postback or callback data for validation.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.