Microsoft KB Archive/190681

= BUG: PageObjectDTC May Publish Wrong Parameter Names =

Article ID: 190681

Article Last Modified on 3/7/2005

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q190681



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
 Create an Active Server Pages (ASP) page in a project and add the PageObjectDTC to it (enable the Scripting Object Model when prompted). Create a server-side script block containing a function with two parameters named paramOne and paramTwo. Use the Properties page of the PageObjectDTC to set the function as a navigate method of the page. Save the page. Change the names of the parameters to paramOneLong and paramTwoLong (do not delete the parameters first).</li> Save the page.</li> Create a client-side script block.</li>  Within the block type this: <pre class="fixed_text">     thisPage.navigate.yourFunctionName(      results: a Parameter Info tooltip appears showing the original      parameter names                        </li> From the HTML menu, select Link.</li> Click Browse to invoke the URL Picker.</li> For "URL type," select ASP Object Method.</li> In the Contents list, select the method exposed in step 3.</li></ol>

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

Keywords: kbbug kbctrl kbpending KB190681

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.