# Displaying an External Web Site

## Content

Displaying an external Web site in **HtmlHost for Silverlight** is as simple as setting a single property. The **C1HtmlHost.SourceUri** property determines the URI of the site displayed in the control. You can set the **C1HtmlHost.SourceUri** property to any Web site – even an external site – to display.

**At Design Time**

To set the **C1HtmlHost.SourceUri** property in Expression Blend, complete the following steps:

1. Click the **C1HtmlHost** control once to select it.
2. Navigate to the Properties window and locate the SourceUri item.
3. Click in the text box next to the **SourceUri** item and enter "http://www.componentone.com".

**In XAML**

For example, to set the **C1HtmlHost.SourceUri** property add SourceUri="" to the [c1:C1HtmlHost](c1:C1HtmlHost) tag so that it appears similar to the following:

\<c1:C1HtmlHost Name="c1HtmlHost1" SourceUri="http://www.componentone.com" />

**In Code**

For example, to set the **C1HtmlHost.SourceUri** property, add the following code to your project:

```vbnet
Me.C1HtmlHost1.SourceUri = "http://www.componentone.com"
```

```csharp
this.C1HtmlHost1.SourceUri = "http://www.componentone.com";
```

![](https://cdn.mescius.io/document-site-files/images/babf1807-69aa-4d8a-96b6-d6c6d9325368/displaying_x0020_an_x0020_external_x0020_web_x0020_site_files/image001.png) **What You've Accomplished**

You've set the **C1HtmlHost.SourceUri** property and customized the **C1HtmlHost** control so that it displays the ComponentOne Web site at run time. Run the application, and observe the ComponentOne Web site appears in the **C1HtmlHost** control at run time.

## See Also

[Displaying HTML Markup](/componentone/docs/wpf/online-extended/HtmlHost2/HtmlHostforSilverlightTaskBasedHelp/DisplayingHTMLMarkup)