Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Invalid postback or callback argument - Very Strange Error

Reply
Thread Tools

Invalid postback or callback argument - Very Strange Error

 
 
shapper
Guest
Posts: n/a
 
      02-01-2008
Hello,

I have an Asp.Net 3.5 ListView.

I added a TextBox and 2 buttons in Edit Item Template.

The TextBox displays the value of the field has expected.

Buttons are defined as follows:

Dim cancel As New Button
cancel.CommandName = "Cancel"
cancel.Text = "Cancel"
Dim update As New Button
update.CommandName = "Update"
update.Text = "Update"

When I press the update or cancel button I get a strange 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.

Why am I getting this error?

Thanks,

Miguel
 
Reply With Quote
 
 
 
 
Jonathan Wood
Guest
Posts: n/a
 
      02-01-2008
I recently had this error. It had something to do with having an embedded
<form> tag. Remember that, normally, ASP.NET pages are enclosed within a
<form> tag. If you end up entering another form tag, it will mess you up.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"shapper" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> I have an Asp.Net 3.5 ListView.
>
> I added a TextBox and 2 buttons in Edit Item Template.
>
> The TextBox displays the value of the field has expected.
>
> Buttons are defined as follows:
>
> Dim cancel As New Button
> cancel.CommandName = "Cancel"
> cancel.Text = "Cancel"
> Dim update As New Button
> update.CommandName = "Update"
> update.Text = "Update"
>
> When I press the update or cancel button I get a strange 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.
>
> Why am I getting this error?
>
> Thanks,
>
> Miguel


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid postback or callback argument error Nathan Sokalski ASP .Net 2 01-10-2007 06:15 AM
ICallbackEventHandler and "Invalid postback or callback argument" error matsla@hotmail.com ASP .Net 2 06-27-2006 05:30 PM
Invalid postback or callback argument Error =?Utf-8?B?SWJyYWhpbS4=?= ASP .Net 1 06-26-2006 04:25 PM
ICallbackEventHandler and "Invalid postback or callback argument" error Martin ASP .Net 3 06-15-2006 01:56 PM
Got an error :Invalid postback or callback argument nitin.bajaj@rediffmail.com ASP .Net 0 11-16-2005 06:42 AM



Advertisments