问题描述
protectedvoidButton1_Click(objectsender,EventArgse){Response.Redirect("<scriptlanguage=javascript>parent.window.opener.location='VipMain/KaoQin/MyKaoQin.aspx';</script>");}
解决方案
解决方案二:
应该是Response.Write吧。。iframe有个属性,你可以通过javascript获取他的id对他的src属性赋值就是了。Response.Write("<scriptlanguage=javascript>Document.getElementByid('id').src='VipMain/KaoQin/MyKaoQin.aspx';</script>");
解决方案三:
protectedvoidButton1_Click(objectsender,EventArgse){Response.Write("<scriptlanguage=javascript>parent.window.opener.location='VipMain/KaoQin/MyKaoQin.aspx';</script>");}
解决方案四:
window.topwindow.parent
解决方案五:
Response.Write("<scriptlanguage=javascript>top.location.href='../../Login.aspx'</script>");
时间: 2024-09-20 06:23:17