One common scenario is to populate the contents of a list or select element at run time, using text replacement. List elements and select elements produce elements on your HTML page that are similar to the list box and combo box controls you use on Visual Basic forms.
Select elements in HTML have the following syntax:
<select name="List1" id="List1" value="List1">
<option value="List">First list item
<option value="List">Second list item
<option value="List">Third list item
</select>
This select element is prepopulated with the list items indicated between the <select> and </select> tags.
Select elements have a restriction that only <option> tags may appear between the opening and closing <select> tags. Therefore, to populate such an element at run time using text replacements, you would do the following:
Your resulting HTML code might look like this:
<WC@SelectElement></WC@SelectElement>
Your code in the ProcessTags procedure would take the form:
If TagName = "wc@SelectElement" Then
'Code here using Response.Write to add a select element and its
'contents to the page.
EndIf
For More Information See "Performing Text Replacements in a Webclass" for more information on tag prefixes, the ProcessTags procedure, and replacing elements in your templates.