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

browser back/forward button

2 Answers 121 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wai
Top achievements
Rank 1
Wai asked on 28 Jan 2009, 05:41 PM
Hello,

I am using .NET 2.0 and Telerik 2008.1.515.20.  I have a RadGird in my page.  The grid has one GridEditCommandColumn. 

This is the problem:
I sorted one of the column and navigated to another page.  Then I came back to my page using the browser back button.  When I clicked on the edit button under the GridEditCommandColumn, I got the the following 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.

Does anyone know how to fix this error?  I tired to set EnableHistory property in RadAjaxManager, but it's still not working.  Is it because it requires .NET3.5?

Thanks a lot,

Wai

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Jan 2009, 04:19 AM
Hi Wai,

Can you try setting the EnableEventValidation to false in the Page directive and see whether the error is comming or not?

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


Shinu
0
Wai
Top achievements
Rank 1
answered on 29 Jan 2009, 05:21 PM
Hello Shinu,

Thanks for your reply.

I don't want to do that because it might cause security probelms.

Acuatlly, I found  a way to fix it yesterday.
http://4guysfromrolla.com/webtech/111500-1.shtml
The script forces the browser to always get the page from the server instead of from the cache.

Wai

 

Tags
Grid
Asked by
Wai
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Wai
Top achievements
Rank 1
Share this question
or