Skip to main content

ASPxPopupControlBase.SaveStateToCookies Property

Gets or sets a value that specifies whether cookies are used to persist the pin, minimize and maximize states, visibility, size, and position of the element (windows for ASPxPopupControl, dock panel for ASPxDockPanel).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public bool SaveStateToCookies { get; set; }

Property Value

Type Default Description
Boolean false

true, if information about a window is persisted in cookies; otherwise, false.


Use the SaveStateToCookies property to control whether a cookie is used to maintain information about a window’s visibility and position. If the browser or device supports cookies, then cookies are used to persist this information; otherwise, information about the visibility state and position of a window is lost between different requests for the same page from the client device’s browser.

When this property is set to true, the ASPxPopupControlBase.SaveStateToCookiesID property can also be used to specify how the control’s window state information should be persisted in cookies.


This example illustrates how to customize an ASPxPopupControl’s setting container using particular properties.

<dx:ASPxButton ID="btn" runat="server" Text="Show PopUp" AutoPostBack="false">
    <ClientSideEvents Click="function (s,e) {popup.Show();}" />

<dx:ASPxPopupControl ID="ASPxPopupControl1" runat="server" ClientInstanceName="popup" PopupElementID="btn"
    DragElement="Window" HeaderText="Directed by: Ridley Scott" MaxHeight="600px"
    MaxWidth="600px" MinHeight="100px" MinWidth="210px" CloseAction="MouseOut" PopupAction="MouseOver" 
    AppearAfter="4000" DisappearAfter="4000" Top="20" Left="80" AllowResize="true" AllowDragging="true"
    ResizingMode="Postponed" SaveStateToCookies="true">
    <CloseButtonImage Url="Images/close.png" AlternateText="No image" />
    <ContentStyle ForeColor="#666677" Font-Names="Tahoma" Font-Size="10px" />
        <dx:PopupControlContentControl runat="server">
                When a Roman general is betrayed and his family murdered by a corrupt prince, he
                comes to Rome as a gladiator to seek revenge.</div>
See Also