FP97: Drop-Down Populated by IDC Query Shows Code Not Data

Last reviewed: January 12, 1998
Article ID: Q159437
The information in this article applies to:
  • Microsoft FrontPage 97 for Windows with Bonus Pack

SYMPTOMS

When you insert a drop-down form field into the detail section of an .htx file, FrontPage does not include a way to populate the drop- down with data from the IDC query.

CAUSE

The HTML construction necessary to achieve this effect is character based rather than tag based. This particular implementation, although popular, is not defined in any of the working documents of the Internet Engineering Task Force. When FrontPage parses this type of construction, it is unable to fit it within a logical tree based on HTML standards.

RESOLUTION

To create a list box populated by an IDC query that returns the value of the selected option, use the HTML Markup command on the Insert menu in FrontPage Editor and insert code similar to the following

   <SELECT name="your_list_box">
      <%begindetail%>
      <option><%The_field_you_want_from_your_recordset%></option>
      <%enddetail%>
   </SELECT>

where "your_list_box" is the name of the drop-down, and "The_field_you_want_from_your_recordset" is a valid field in the recordset returned by the IDC query associated with this .htx file.

WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

MORE INFORMATION

For more information about publishing dynamic data on the Web, see Chapter 8 of the online documentation for IIS. Note that Chapter 8 of this documentation is available at the following Web site:

   http://www.microsoft.com/iis/usingiis/resources/IIS2docs/08_iis.htm

NOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:

   http://www.microsoft.com

REFERENCES

To view the HTML 2.0 specification for the SELECT tag, see the following World Wide Web Consortium Web site at:

   http://www.w3.org/pub/WWW/MarkUp/html-spec/
   html-spec_8.html#SEC8.1.3

The HTML 3.2 proposal on the SELECT tag is available at:

   http://www.w3.org/pub/WWW/TR/WD-html32#select

The HTML 4.0 Working Draft Release can be found at:

...http://www.w3.org/TR/WD-html40-970708/

NOTE: Because the Microsoft Web site is constantly updated, the site address may change without notice. If this occurs, link to the Microsoft home page at the following address:

   http://www.microsoft.com


Additional query words: 97
Keywords : fphtml kbusage
Version : 97
Platform : WINDOWS


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: January 12, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.