PRB: Intellisense Doesn't Show Execute Methods for PageObject DTCID: Q234143
|
When developing with the Visual InterDev PageObject Design-Time Control (DTC), intellisense may not show execute methods for your PageObject.
This behavior is commonly the result of one of several possible scenarios:
The PageObject DTC has a Scripting Platform of "Client (IE 4.0 DHTML)"
If a PageObject exists on an HTML page or is referred to using client-side code on the same Active Server Pages (ASP) page, then it has a scripting platform of "Client (IE 4.0 DHTML)" and will not possess any execute methods.
If a reference is set in a client-side PageObject DTC to a server-side PageObject DTC, the execute methods identified in the server-side PageObject DTC are referenced in code by using the name of the server-side PageObject DTC, not the client-side PageObject DTC that contains the reference.
For example, you may have a page called Poclient.htm containing a client-side PageObject DTC named "poclient." Your "poclient" PageObject DTC has a reference to Poserver.asp. Poserver.asp has a PageObject DTC named "poserver," which specifies an execute method named ServerFunction(). To reference ServerFunction() from Poclient.htm, you would use the server-side PageObject DTC, "poserver" as in the following:
<!-- client-side code in poclient.htm -->
<SCRIPT Language=JavaScript>
function Button1_onclick() {
var obj = poserver.execute.ServerFunction();
alert(obj.return_value);
}
</SCRIPT>
If you use "poclient" instead of "poserver" in the above code, intellisense will show no execute methods defined in pageobject "poserver."
This behavior is by design.
Additional query words:
Keywords : kbCtrl kbVisID600 kbGrpASP
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: July 2, 1999