Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

i have a one error when masterpage linkutton is clicked. i use script manager on one page and it is use master page. there is no script manager in Master page.

error 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 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.


Please help Me..

Thanks in Advance.
MItesh
Posted
Updated 28-Jun-12 22:38pm
v2

Add EnableEventValidation="true" in aspx page as below

C#
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" EnableEventValidation="false" %>


Mark it solution if you get your answer.

Thanks
Ashish
 
Share this answer
 
v3
Comments
[no name] 29-Jun-12 5:21am    
not working... same error display.
AshishChaudha 29-Jun-12 5:52am    
put you script manager in master page. it will be give reference to all the pages (masterpage included) where you are using ajax controls.
[no name] 29-Jun-12 6:04am    
i chage and it works. Make EnableEventValidation="False". Thanks Brother
AshishChaudha 29-Jun-12 6:12am    
your's welcome
member60 29-Jun-12 6:20am    
my 5!
Check this video here, it will help you to solve your problem.

http://www.asp.net/web-forms/videos/aspnet-ajax/how-do-i-use-an-aspnet-ajax-scriptmanagerproxy[^]


Cheers
 
Share this answer
 
This is because while requesting to server i.e.while postback the compiler getting some tag like sysntax or some invalid operator so it is showing problem.so you can check your attributes at page directive
To solve these problems we used to add CDATA section but that is not good idea,try placing ScriptManager on Master page or change the attribute.
 
Share this answer
 
Comments
[no name] 29-Jun-12 5:40am    
when i put script manager in master page so it next inherited page it will not allow to put next script manager because i want to use updateprogress on next inherited page. Please Correct if i am wrong.
Vani Kulkarni 29-Jun-12 6:09am    
It does not matter. As long as you are using Master Page as the Master for all your ASPX pages ScriptManager can be present in Master Page and you can always use UpdateProgress in those pages.
[no name] 29-Jun-12 7:03am    
thanks brother for give some things in c#.
Career Web Helper 3-Jul-12 1:14am    
welcome bro happy coding!!!!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900