I've a user control "MyUserControl", which has a direct method "DirectMethod1".
"MyUserControl" locates on aspx the page, and this aspx page is opened as a tab of a TabPanel with iframe mode.
Before I used the following approach to call direct methods

function callDirectMethod(){
Now this approach doesn't work because of using TabPanel with iframe mode .
How can I fix it?