读书人

iframe中的 dropdownlist怎么实现当发

发布时间: 2012-01-09 21:05:42 作者: rapoo

iframe中的 dropdownlist如何实现当发生 SelectedIndexChanged 时 Response.Redirect("pcolumn.aspx") 能够从整个 index.aspx 页中跳转


在index.aspx 页中有一个iframe,

在此 iframe中有一个 dropdownlist,

当 dropdownlist 发生 SelectedIndexChanged 时

我要实现 Response.Redirect( "pcolumn.aspx ")

但是那是在 iframe 中发生的跳转,我想实现从整个 index.aspx 页完全跳到 pcolumn.aspx 上去,要如何实现呢?

[解决办法]
试试:
Response.Write( " <script> window.location.href= '地址 '; </script> ");

或者
写js.
[解决办法]
try ->

Response.Write( " <script> top.location.href= 'pcolumn.aspx '; </script> ");

读书人网 >asp.net

热点推荐