Skip to main content

SplitterPane.ContentUrl Property

Gets or sets the URL of a specific web page to be displayed within a pane.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public string ContentUrl { get; set; }

Property Value

Type Default Description
String String.Empty

A string value that specifies a page’s URL.


Use the ContentUrl property to specify the URL of a web page which should be loaded into, and displayed within, the current pane. A relative or an absolute URL can be used.

The ASPxClientSplitterPane.SetContentUrl and ASPxClientSplitterPane.GetContentUrl methods can be used to specify and obtain the URL of a pane’s content web page on the client side.


It’s necessary to set the ContentUrl property (for instance, to any dummy value such as “about:blank”) to enable use of the client ASPxClientSplitterPane.SetContentUrl method and the server SplitterPane.ContentUrlIFrameName property. Otherwise, if the ContentUrl property is not set, the corresponding IFRAME element is not rendered within a pane. In this case, calling the ASPxClientSplitterPane.SetContentUrl method and defining the SplitterPane.ContentUrlIFrameName have no effect.

The AutoHeight property is not in effect if the ContentUrl property is specified. The example below demonstrates how to change the size of a pane based on the size of its content:

<dx:ASPxSplitter ID="ASPxSplitter1" runat="server" ClientInstanceName="splitter"
        <dx:SplitterPane ContentUrl="ContentPage.aspx" Name="ContentUrlPane">
    <ClientSideEvents PaneContentUrlLoaded="CalculateSize"/>          
function CalculateSize() {
    var iframeElement = splitter.GetPaneByName('ContentUrlPane').GetContentIFrame();
    var iframe = GetFrameOfIFrame(iframeElement);
    var doc = iframe.document;


function GetFrameOfIFrame(iframeElement) {
    var name = (new Date()).toString();
    var backup =; = name;
    var frameIndex = this.internalGetFrameByWindowName(name); = backup;
    return window.frames[frameIndex];

function internalGetFrameByWindowName(name) {
    var count =;
    for (var i = 0; i < count; i++) {
        if ([i] === name)
            return i;
    return -1;

View Example: How to resize a pane according to the height of its content specified by the ContentUrl property

See Also