我的网页中试用了frameset框架,代码是:
<frameset id="sidebar_content" cols="15%, *" frameborder="1" border="6" framespacing="5"bordercolor="#A2C7F9">
<frame name="NavigetionFrame" src="Left.aspx" scrolling="aoto" frameborder="0" />
<frame name="ContentFrame" src="ShowCamera.aspx" scrolling="aoto" frameborder="0" />
</frameset>
左边的页面上有一个DropDownList,当我选择DropDownList中的项时,右边的页面内容发生相应的改变,根据需要还可以打开其他的网页,我的代码是:
if (this.DropDownList1.SelectedValue == "左上窗口")
{
Response.Write("<script language='javascript'>window.open("xxxx.aspx","ContentFrame");</script>");
}
为什么没有效果,可能是我的代码出了问题,请问想要实现我说的那种效果,应该怎么做呢?谢谢!
<frameset id="sidebar_content" cols="15%, *" frameborder="1" border="6" framespacing="5"bordercolor="#A2C7F9">
<frame name="NavigetionFrame" src="Left.aspx" scrolling="aoto" frameborder="0" />
<frame name="ContentFrame" src="ShowCamera.aspx" scrolling="aoto" frameborder="0" />
</frameset>
左边的页面上有一个DropDownList,当我选择DropDownList中的项时,右边的页面内容发生相应的改变,根据需要还可以打开其他的网页,我的代码是:
if (this.DropDownList1.SelectedValue == "左上窗口")
{
Response.Write("<script language='javascript'>window.open("xxxx.aspx","ContentFrame");</script>");
}
为什么没有效果,可能是我的代码出了问题,请问想要实现我说的那种效果,应该怎么做呢?谢谢!
解决方案 »
- 网站下载附件打不开!
- 当文本框验证格式错误时,如何全选文本框中的内容?是服务器端的文本框~
- 高分!!菜鸟请教一个上传图片的问题!
- 使用asp.net的ajax导致我设置的Textbox的focus失效,如何解决?
- 求救:如何恢复.net的编码方式?
- 求这个图片界面的里面可以加入什么样的图片,怎么加(asp.net)
- 有什么好的免费的纯JS的图表控件?
- 在方法加上[类名],是什么意思
- 斑竹,我是因为升级才散分的,有个穿红裤衩的支持俺了……
- 为什么只有这样DataGrid才能分页?
- Application_Start(object sender, EventArgs e)这个事件能持续多长时间,还是他就一个简单的动作
- [求助]使用cookieless的session时,用户登录的认证问题
中加个id =“123”;然后链接的时候把链接的地址的打开方式写成 123 就行了