Click here to Skip to main content
15,895,256 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
Posted
Updated 7-Jun-10 1:32am
v2

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;   


OR

document.getElementById(iframeId).src = url;


Main issue over here is to call the javascript function from sitemapdatasource, for this you can check following link.

http://coloboxp.wordpress.com/2007/09/14/adding-javascript-to-aspnet-menu-control-to-open-a-popup-window-centered/[^]
 
Share this answer
 
Comments
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 asp.net, 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