Skip to main content

ASPxPopupControlBase.Left Property

Gets or sets the x-coordinate of a control’s left side.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public virtual int Left { get; set; }

Property Value

Type Default Description
Int32 0

An integer value specifying the x-coordinate of the control’s left side.


The Left property allows you to specify a value of the x-coordinate of the control’s left side. To completely define the control’s position, you must specify a value for this property and for the ASPxPopupControlBase.Top property.


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

View Example

<head runat="server">
    <title>ASPxPopupControl - How to customize the control</title>
    <form id="form1" runat="server">
        <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>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
    protected void Page_Load(object sender, EventArgs e) {

See Also