SITEMAPDATASOURCE和iFRAME控件 [英] SITEMAPDATASOURCE AND iFRAME CONTROL
本文介绍了SITEMAPDATASOURCE和iFRAME控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在设计主页,其中包括以下内容:
I''m designing main page, which consist of following:
1) menu control
2) sitemapdatasource control
3) iframe control
我的问题是,如何从菜单控件中选择菜单项时将页面定向到iframe
My problem is that, how can i direct pages to iframe on selection of menuitem from menu control
推荐答案
在菜单上单击以调用javascript函数,然后在该函数中进行设置iFrame的来源如下.
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;
此处的主要问题是从sitemapdatasource调用javascript函数,为此,您可以检查以下链接.
http://coloboxp.wordpress.com/2007/09/14/adding-javascript-to-aspnet-menu-control-to-open-a-popup-window-centered/ [
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/[^]
这篇关于SITEMAPDATASOURCE和iFRAME控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文