This is a migrated thread and some comments may be shown as answers.

GridButtonColumn causes a security Issue

5 Answers 100 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Paul Gallen
Top achievements
Rank 1
Paul Gallen asked on 01 Aug 2008, 04:37 PM
Hi
I added the following  GridButtonColumn

<

telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"

ConfirmText="Remove this UDF?" Text="Remove UDF" UniqueName="DeleteColumn">

<HeaderStyle Width="20px" />

</telerik:GridButtonColumn>

and when the application was running I clciked on the delete icon and I got the following error message

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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.

Any clues?


Thanks

P

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 04 Aug 2008, 12:19 PM
Hi Paul,

Can you please check whether the issue is present merely when you choose ButtonType = "ImageButton" for the button column? Also verify that you enabled the viewstate for the grid in this configuration.  Additionally, verify that you are using the latest version 2008.2.723 of RadControls for ASP.NET AJAX.

If the cause of the problem seems to be elsewhere, isolate a stripped working version of your project and send it enclosed to a formal support ticket. I will familiarize with your complete code logic and will get back to you with more info on the subject.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Gallen
Top achievements
Rank 1
answered on 04 Aug 2008, 04:08 PM
When I set the ButtonType to a LinkButton or a PushButton I do not get an error.

I have been using the delete image button throughout the application with no problem, the only thing I can think of is that the radGrid is in a radWindow?


P
0
Sebastian
Telerik team
answered on 05 Aug 2008, 05:52 AM
Hi Paul,

Does moving your grid instance outside of RadWindow makes a difference? I assume that you confirm the viewstate for the control is enabled and you use the latest release of RadControls for ASP.NET AJAX in this case.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Paul Gallen
Top achievements
Rank 1
answered on 05 Aug 2008, 07:55 AM

The Viewstate is enabled for the radGrid and the Telerik.Web.UI.dll is at version 2008.01.0515.35.

Yes, taking the instance of the radGrid out of the radwindow causes no issues when using the GridButtonColumn with a ButtonType of ImageButton


Viewing your web site,  I am unable to readily view the latest Dll version or where I can download the latest updates from. Am I using the latest version?


P

 

0
Sebastian
Telerik team
answered on 05 Aug 2008, 08:15 AM
Hi Paul,

The latest release of RadControls for ASP.NET AJAX is 2008.2.723 (Q2 2008) and can be downloaded from
your Client.net account -> My Licenses -> My Purchases section. Upgrade instructions you can find in this KB article on our site.

If the issue persists with the new version, please isolate a stripped working version of your project and send it enclosed to a formal support ticket under the RadWindow category. We will test/debug it locally and will advice you further.

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Paul Gallen
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Paul Gallen
Top achievements
Rank 1
Share this question
or