We help IT Professionals succeed at work.

Can't select treeview node from iframe

René Overweg
Last Modified: 2017-04-18
My problem in short: I don't know how to keep the selected node from a treeview in sync with the corresponding page in the IFrame.
So, I've got a Treeview, with 2 treenodes, and an Iframe, both in default.aspx. Further I've got 2 pages, page1.aspx and page2.aspx, which corresponds with treenode1 and treenode2. When I click on a treeview node, 2 things happen:
1. The corresponding page appears in the IFrame;
2. The selected node gets bold.
That works allright.

When page1.aspx is shown in the iframe, it has a link to page2.aspx. When I click that, the same 2 things need to happen:
1. Page2.aspx needs to appear in the IFrame;
2. The corresponding node needs to get bold.
The first thing works fine. But I can't figure out how to get de second thing to work...?

I do know how to change the selected treenode programmatically, but I don't know how to call that function, which is in default.aspx, from the page in the frame (page1.aspx).

In the attached file my project in short. In the code behind of default.aspx is a function to change the selected node.
Watch Question

Simple Geek from the '70s
Distinguished Expert 2019
Unlock this solution and get a sample of our free trial.
(No credit card required)


That's bad news.
But the answer is clear, thanks!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.