日期:2014-05-18  浏览次数:20365 次

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> ");