So basically if the page structure looks like the following below
var someControlInstance;
function onInit() {
someControlInstance = new ControlLibrary.SampleControl(targetElement);
}
function someOtherFunctionInvokedAfterInit()
{
someControlInstance.Property? //<-- No intellisense<br>
}
in the onInit()
function, i can see the events, properties ect of the control, however when you are in another function, the Visual Studio IDE now has no idea what 'Type' the someControlInstance is. Is there some special trick or 'Cast' function available to get intellisense to come up?