473,796 Members | 2,654 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 5799
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
1113
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
1464
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
1324
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
9527
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
10453
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...
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10172
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,...
0
10003
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5441
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...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
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
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.