Task-Based Help / Setting Content in the Content Area / Setting Custom HTML Content
Setting Custom HTML Content

You can set custom HTML content to display in the Content Area. This is done in the Source View of your project. For this Task-Based Help, we will insert HTML Markup that will allow users to enter text in a text box and have it displayed in a formatted, pop-up dialog box.

Complete the following steps:

  1. Within the <cc1:C1Dialog> tags, insert the following tag set.

    <Context></Context>

  2. Insert the following markup between the <Content> tags.

    To write code in Source View

    Sample HTML Content</h2><p>&nbsp;You can add custom HTML content.     
    <br /></p>&nbsp;Enter text here: <input type=text id="input1" />
    <br>&nbsp;And then click: <input type="button" value="Show"
    onclick="alert(document.getElementById('input1').value)"
  3. Press F5 to run your project. Your C1Dialog should look like the following image:

    C1Dialog

    When the user enters text and clicks the "Show" button, the following dialog box appears:

    C1Dialog