473,785 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AJAX and ASP.Net 2.0 Problem for EnableEventVali dation

Hi There,

I've problem while I submit a button where I used AJAX, I created
simple page which will search the customer name from database using
AJAX. Once I search customer ID i need to search order related to that
customers. So on my page I've Search Button(Image Button).. Now if I
click on search button without selecting the customer from the result
which I get from AJAX method then it will work fine but if I select a
customer ID from the list which is populated by AJAX Method then I
click on search button it throws this error.. I dont know why?

Could you please explain about this that will be highly appriciated?
I'm attaching my full error message for your reference.

Invalid postback or callback argument. Event validation is enabled
using <pages enableEventVali dation="true"/> in configuration or <%@
Page EnableEventVali dation="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
ClientScriptMan ager.RegisterFo rEventValidatio n method in order to
register the postback or callback data for validation.

Thanks and look forward to hear from you.

Mihir

Jan 4 '06 #1
1 5797
to prevent hacking, asp.net validates postback values when it can. if the
postback is from a select (dropdown), then the value must be on the list of
values rendered. your JavaScript is probably adding an option, then posting
back - triggering the validation code. you must turn the validation off in
your case using either method mentioned in the error.

-- bruce (sqlwork.com)


"Mihir" <mi*******@gmai l.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. .
Hi There,

I've problem while I submit a button where I used AJAX, I created
simple page which will search the customer name from database using
AJAX. Once I search customer ID i need to search order related to that
customers. So on my page I've Search Button(Image Button).. Now if I
click on search button without selecting the customer from the result
which I get from AJAX method then it will work fine but if I select a
customer ID from the list which is populated by AJAX Method then I
click on search button it throws this error.. I dont know why?

Could you please explain about this that will be highly appriciated?
I'm attaching my full error message for your reference.

Invalid postback or callback argument. Event validation is enabled
using <pages enableEventVali dation="true"/> in configuration or <%@
Page EnableEventVali dation="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
ClientScriptMan ager.RegisterFo rEventValidatio n method in order to
register the postback or callback data for validation.

Thanks and look forward to hear from you.

Mihir

Jan 5 '06 #2

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

Similar topics

0
995
by: Darren.Ratcliffe | last post by:
Hi everyone I am getting the above problem when I am trying to use AJAX on my Visual Studio 2005 solution - I seem to keep getting it when I click the back button in my browser. (And, the controls that are wired to the AJAX lose their value despite being in the ViewState). I am using the latest version that I downloaded from ajax.asp.net a couple of days ago.
0
1112
by: UJ | last post by:
I have an ASP.Net v1.1 application that gets the error Error Message: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...
2
2425
by: Rahul | last post by:
I am trying the following thing in AJAX <atlas:ScriptManager ID="scriptmanager1" runat="Server" EnablePartialRendering="true" /> <asp:DropDownList ID="cmbBranchname" cssclass="Combostyle" runat="server" /> <br/> <atlas:UpdatePanel ID="panel1" runat="server" UpdateMode="Conditional" > <ContentTemplate>
0
1462
by: john_c | last post by:
Sometimes I get this error in an aspx page: 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...
2
766
by: =?Utf-8?B?V2luRGV2?= | last post by:
I have a couple of pages that are throwing the following error: HTTPUnhandledException and the text of the 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...
1
8192
by: yoni12ab | last post by:
Hi Im new in my job never configure iis the problem is that I reinstalled visual studio 2003 becouse of debugger problem and the local web site was working fine and now it doesent work it giving me this error : Server Error in '/appname' Application. ________________________________________ Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific...
0
1504
by: Ronald S. Cook | last post by:
I'm using AJAX controls ScriptManager and UpdatePanel for the first time. as I want a webpage that contains an embedded Windows Media Player to not be interrupted as other clicks and events happen on the page (I have changing content in an IFrame). I put an ASP button on the page and click it but I get an "error on page". In the details it says more or less the below: Sys.WebForms.PageRequestManagerServerErrorException: Invalid...
4
4492
by: Lewis Holmes | last post by:
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is selected, the row is added using JavaScript. The script uses cloneNode to clone a hidden template row and all of its children and then adds the new row to the table, updates all of the child control Ids and sets visibility etc. The hidden...
0
1323
by: Heron | last post by:
Hi, I have a listbox (lstItems) that I want to populate with the items in another listbox (lstSelected) that's in a modalpopupextender. The update is supposed to happen when I close the modalpopup so I tried to add a trigger for the click event of the ok button but it seems this event is not fired anymore on serverside when it's used as the OnOkControlID for the modalpopupextender. Anyone know how to slove this?
0
9480
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10093
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.