Ticket T282172
Visible to All Users

ASPxCallbackPanel throws an invalid ViewState error in Chrome when the Back button is clicked

created 10 years ago

With Chrome browser, an Invalid Viewstate is being thrown when a user clicks the back button on the browser.
Please see attached project and video on how to reproduce the issue. Thanks!

Answers approved by DevExpress Support

created 10 years ago (modified 9 years ago)

Hello,

Our controls may operate incorrectly if the Back and Forward buttons are clicked. Please refer to the Control state is not restored if Back and Forward browser buttons are clicked article for additional details.

I suggest you set the form.autocomplete property to off to overcome the issue.

ASPx
<form id="form1" runat="server" autocomplete="off">

It would be better to use the built-in callback functionality of ASPxPopupControl instead of ASPxCallBackPanel. To pass a callback to the server, use the ASPxClientPopupControlBase.PerformCallback event.

    Comments (2)
    AM AM
    Ashley Medway (Cooper Solutions) 9 years ago

      Adding the autocompelete="off" does indeed fix the issue. However this will turn autocomplete off for all inputs on the page.

      Is there a way to only do this for DevExpress controls?

      DevExpress Support Team 9 years ago

        Hello Ashley,

        I've created a separate ticket on your behalf (T435314: How to switch off the autocomplete property only for DevExpress controls). It has been placed in our processing queue and will be answered shortly.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.