EnableEventValidation not working

View: New views
3 Messages — Rating Filter:   Alert me  

EnableEventValidation not working

by aps-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have some page where mono gives me the 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.

The same page works correctly on MS.NET but the problem is another. Even inserting EnableEventValidation="false" in Page directive or <pages enableEventValidation="false"/> in web.config file the error still raise.

Maybe EnableEventValidation is not implemented in Mono? Or I'm doing something wrong?

_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list@...
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

Re: EnableEventValidation not working

by Marek Habersack-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

APS wrote:
> Hi,
Hey,

> I have some page where mono gives me the 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.
>
> The same page works correctly on MS.NET but the problem is another. Even
> inserting EnableEventValidation="false" in Page directive or <pages
> enableEventValidation="false"/> in web.config file the error still raise.
>
> Maybe EnableEventValidation is not implemented in Mono? Or I'm doing
> something wrong?
As the above message reads, event validation is enabled. It is implemented by Mono but you might
have hit a bug. Create a simple, self-contained and ready to run test case and file a bug report for
the System.Web component attaching the test case (see http://www.mono-project.com/Bugs)

marek
_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list@...
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list

Re: EnableEventValidation not working

by aps-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I have another test case to build :-) I'll do it as soon as possible.
Btw when I said "not implemented" I was talking about configuration
parameters management, not the event validation feature.

At 19.49 14/10/2009, you wrote:

>APS wrote:
>>Hi,
>Hey,
>
>>I have some page where mono gives me the 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.
>>The same page works correctly on MS.NET but the problem is another.
>>Even inserting EnableEventValidation="false" in Page directive or
>><pages enableEventValidation="false"/> in web.config file the error
>>still raise.
>>Maybe EnableEventValidation is not implemented in Mono? Or I'm
>>doing something wrong?
>As the above message reads, event validation is enabled. It is
>implemented by Mono but you might have hit a bug. Create a simple,
>self-contained and ready to run test case and file a bug report for
>the System.Web component attaching the test case (see
>http://www.mono-project.com/Bugs)
>
>marek
>
>--
>Il messaggio e' stato analizzato alla ricerca di virus o
>contenuti pericolosi da MailScanner, ed e'
>risultato non infetto.
>


_______________________________________________
Mono-aspnet-list mailing list
Mono-aspnet-list@...
http://lists.ximian.com/mailman/listinfo/mono-aspnet-list