ASPxClientPopupControlBase.SetContentUrl(url) Method

Sets the URL to point to the web page that should be loaded into, and displayed within the control's window.

Declaration

SetContentUrl(url: string): void

Parameters

Name Type Description
url string

A string value specifying the URL to the web page displayed within the control's window.

Remarks

The SetContentUrl method can be used on the client side to specify the URL of the web page to be displayed as the content of the control's window. The web page's URL can be either an absolute or relative path.

Examples

If a content of the ASPxPopupControl is loaded slowly, you can show a loading panel reflecting this process.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPage.aspx.cs" Inherits="TestPage" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <h2> Page content </h2>
    </div>
    </form>
</body>
</html>
See Also