How to Dynamically Populate a Select Control with IDC (156757)



The information in this article applies to:

  • Microsoft Internet Information Server 1.0
  • Microsoft Internet Information Server 2.0

This article was previously published under Q156757
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

SUMMARY

You can use the Internet Database Connector (IDC) with Internet Information Server (IIS) to populate a HTML Select form control.

MORE INFORMATION

The following HTML sample can be used in an HTX file and will illustrate how to return database information to dynamically populate a HTML form Select control.

The following form section pasted into a HTX file will dynamically populate the select control ("JobType") with the return values from the "Title" field.

<FORM>

Job Type: <SELECT NAME="JobType">
<%begindetail%>
   <option><%Title%></option>
<%enddetail%>
</select>

</FORM>

				

For more information look in Chapter 8 of the Online Documentation for IIS that details the Internet Database Connector and covers publishing dynamic data on the Web. Additionally, you can view the JobForum IDC database example application found on the following Web site:

Modification Type:MinorLast Reviewed:6/22/2005
Keywords:kbenv kbhowto KB156757