asp.net iframe - .NET技术 / ASP.NET
是这样的 我的一个页面里有两个iframe iframe1和iframe2
iframe1是一个导航,iframe2里显示一些相应的页面,我现在面临的问题是,iframe1里有的导航按钮是imagebutton
求达人指教如何才能使点击imagebutton时,iframe2里的内容定位到相应的页面?
帮帮忙呗,谢谢啊%>_<%
导航按钮可使用href设置target
设置target
也可window.frames['main'].location.href="";
忘记说了,iframe1里的内容也是别的页面定位过来的。。。
请参见:
《iframe 父窗口和子窗口相互的调用方法集锦》http://blog.csdn.net/wonsoft/archive/2009/01/02/3686752.aspx
既然是别的页面 很难从外控制的吧
2楼是正解!
也可以在ImageButton加一个OnClientClick事件
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/你图片.gif" OnClientClick="javascript:window.parent.document.getElementById('iframe2').src='xxx.aspx';return false;"/>
<
相关问答:
有一个类
class adc
{
dim a,b,c
}
如何在另外一个类中取得类成员及成员个数
class getmenber
{
dim menbers()
function getmenbers(resclass)
'res为一未知类
'getmenber ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
我用.net开发wap网站
1,我从工具箱里拖了两个link,这两个link会显示在两行,如果让这两个link处于同一行。
2,如何显示两个控件之间的空格问题。
跟wap有关吗?不太明白
友情帮顶。。。。。。。。。。
就 ......
我有两个dropdownlist都绑好了值,想选中一个dropdownlist中的值,然后在另一个dropdownlist中选中相应的一项。
不是从新绑定第二个dropdownlist,是在已经绑好的值当中选中一个。
我想用js写
求助
你可以把drop ......
代码如下 请高手 指点下 谢谢
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......