Displaying External Content in a Tab Page
You can use the ContentUrl property to display external content in a C1TabControl tab page. In this topic, you will set the ContentUrl property in Design view, in Source view, and in code.
In Design View
Complete the following steps:
1. Click C1TabControl's
smart tag () to open the
C1TabControl Tasks menu and select TabControl Designer.
2. In the
C1TabControl Designer Form, click the Add Child Item button
to add a new
page to the control.
3. In the left panel, select the C1TabPage1 and set the ContentUrl property in the Properties grid. You can set this to any URL, but we're going to enter "http://www.componentone.com" for this exercise.
4. Click OK to exit the C1TabControl Designer Form.
5. Run your application and note that the C1TabControl now displays the content of "http://www.componentone.com" on the selected page.
In Source View
To set a C1TabControl to load on demand in Source view, add ContentUrl="http://www.componentone.com" to the <cc1:C1TabPage> tag. The resulting markup tag will resemble the following:
<cc1:C1TabPage ID="C1TabPage1" runat="server" ContentUrl="http://www.componentone.com">
In Code
To set the ContentUrl property, add the following code to the Page_Load event:
Me.C1TabPage1.ContentUrl = http://www.componentone.com
• C#
this.C1TabPage1.ContentUrl = "http://www.componentone.com";
This Topic Illustrates the Following:
A C1TabControl control can be used to exhibit outside content. The graphic below features a C1TabControl control with external content:
|