How to Dynamically Populate a Select Control with IDC

Last reviewed: April 18, 1997
Article ID: Q156757

The information in this article applies to:
  • Microsoft Internet Information Server versions 1.0 and 2.0

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 an IDC database example application found on the web:

   http://www.microsoft.com/accessdev/accwhite/jobforpa.htm


Additional query words:
Keywords : iisodbc kbenv
Version : 1.0 2.0
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 18, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.