FIX: Passing TRUE to Display Method of Script Object Returns HTML Text

Article translations Article translations
Article ID: 224934 - View products that this article applies to.
This article was previously published under Q224934
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

By default, the Display method of a Visual InterDev 6.0 Script Object will generate its HTML text representation and Response.Write the text. This returns the text to the browser that invoked the ASP.

There are high-end scenarios where it might be useful to use a Script Object as a component for generating some HTML text. In this scenario, you can pass a TRUE parameter to the Display method of a Script Object and it returns its generated text to the caller. The caller can then merge it in with other HTML and subsequently Response.Write it out to the browser, store it in a variable, or store it in a file for later use.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3.

For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

Steps to Reproduce Behavior

  1. Add a new ASP page to the your project.
  2. Drag a Button Design Time Control between the <BODY> tags.
  3. Change the following line of server-side script:
    <%Button1.display%>
    to:
    <%
    Dim retval
    retval = Button1.display(TRUE)
    Response.Write retval
    %>

Properties

Article ID: 224934 - Last Review: October 20, 2013 - Revision: 1.1
APPLIES TO
  • Microsoft Visual InterDev 6.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbctrl kbfix kbvs600sp3fix KB224934

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com