ComponentOne Dialog for ASP.NET Web Forms
Task-Based Help / Setting Content in the Content Area / Showing External Content in the Content Area
In This Topic
    Showing External Content in the Content Area
    In This Topic

    In C1Dialog, you can show external URL content in the Dialog Content Area. You can have the content from another Web page within your project or the content from a URL outside your project display in the dialog content area.

    Complete these steps to display URL content in the Content Area:

    In Design View

    Complete the following steps:

    1. Select View | Properties from the Visual Studio menu. And choose C1Dialog from the drop-down list at the top of the Properties window.
    2. Scroll down to the ContentURL property.
    3. Set the ContentURL property to the URL you wish to have display in your project.

      C1Dialog

    4. Press F5 to run the program. Your chosen Web page should display in the dialog window.

    In Source View

    Complete these steps to set a ContentURL in Source View:

    1. Add the following markup to the opening <cc1:C1Dialog> tag:

      To write code in Source View

      ContentUrl="http://wijmo.com/wiki/index.php/Main_Page"

      The markup in the <cc1:C1Dialog> tags should resemble the following:

      To write code in Source View

      <cc1:C1Dialog ID="C1Dialog1" runat="server"
      Width="760px" Height="460px" Stack="True" CloseText="True" MaintainVisibilityOnPostback="False" CloseOnEscape="False" ContentURL="http://wijmo.com">
    2. Press F5 or start debugging to run your program. Your Web page will display in the Dialog window.

    In Code

    Add the following code to the Page_Load event to set the ContentUrl property to display external content in theC1Dialog Control.

    To write code in Visual Basic

    Me.C1Dialog1.ContentUrl = "http://www.wikipedia.com/"

    To write code in C#

    this.C1Dialog1.ContentUrl = "http://wikipedia.com";