Click here to Skip to main content
15,798,592 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm designing main page, which consist of following:

1) menu control
2) sitemapdatasource control
3) iframe control

My problem is that, how can i direct pages to iframe on selection of menuitem from menu control
Updated 7-Jun-10 2:32am

1 solution

On menu click call a javascript function and within that function you can set the source of the iFrame as followng.

window.frames[iframeName].location = url;   


document.getElementById(iframeId).src = url;

Main issue over here is to call the javascript function from sitemapdatasource, for this you can check following link.[^]
Share this answer
dhage.prashant01 7-Jun-10 6:45am    
I'm unable to understand the flow
will u give the way to do

thanks in advance
PSK_ 7-Jun-10 6:55am    
Have you followed the steps mentioned in the link?
dhage.prashant01 7-Jun-10 6:58am    
actually m not getting those steps..
some simple example to follow..??
actually m new to, so it goes bouncer high funda code

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900