BUG: PageObjectDTC May Publish Wrong Parameter Names

ID: Q190681


The information in this article applies to:
  • Microsoft Visual InterDev, version 6.0


SYMPTOMS

After changing the parameter names of an exported navigate or execute function of the PageObjectDTC, the older parameter names may still be shown by the URL Picker and by the Parameter Info tooltip for the function.


CAUSE

If only the names of the parameters are changed and the number of parameters remains unchanged, the PageObjectDTC does not detect the change and does not update its published information. This incorrect published information is then used by the URL Picker and the Parameter Info tooltips.


RESOLUTION

After changing the names of the parameters of a function exported by the PageObjectDTC, add an extra, bogus parameter, then immediately delete this extra parameter. When the number of parameters changes, the PageObjectDTC will detect the changed parameter information and update its published information appropriately.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

This issue does not affect the run-time functionality of the page because the names of parameters are not used at run-time.

Steps to Reproduce Behavior

  1. Create an Active Server Pages (ASP) page in a project and add the PageObjectDTC to it (enable the Scripting Object Model when prompted).


  2. Create a server-side script block containing a function with two parameters named paramOne and paramTwo.


  3. Use the Properties page of the PageObjectDTC to set the function as a navigate method of the page.


  4. Save the page.


  5. Change the names of the parameters to paramOneLong and paramTwoLong (do not delete the parameters first).


  6. Save the page.


  7. Create a client-side script block.


  8. Within the block type this:
    
          thisPage.navigate.yourFunctionName(
          results: a Parameter Info tooltip appears showing the original
          parameter names 


  9. From the HTML menu, select Link.


  10. Click Browse to invoke the URL Picker.


  11. For "URL type," select ASP Object Method.


  12. In the Contents list, select the method exposed in step 3.


The contents of the "Parameters" drop-down list should include the original parameter names are shown.

Additional query words:

Keywords : kbCtrl kbVisID600bug kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: May 13, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.