首页 新闻 会员 周边

js 错误

0
[已解决问题] 解决于 2010-08-15 16:05

  在<asp:ScriptManager ID="ScriptManager1" runat="server">
             </asp:ScriptManager>

   <ContentTemplate>   

          <asp:UpdatePanel ID="UpdatePanel1" runat="server">

           <asp:DropDownList  ID="ddlroom" runat="server" 
                onselectedindexchanged="ddlroom_SelectedIndexChanged">

          </asp:DropDownList>

</ContentTemplate>
             </asp:UpdatePanel>

中的 ddlroom_SelectedIndexChanged 事件使用一下代码            System.Web.HttpContext.Current.Response.Write("<script>window.location=window.location</script>");
总是出错 为什呀

  

三月软件工作室——任忌的主页 三月软件工作室——任忌 | 小虾三级 | 园豆:524
提问于:2010-08-15 15:31
< >
分享
最佳答案
0

想刷新页面,试试:

Response.Write("<script language=javascript>window.location.href=document.URL;</script>");

 

邀月 | 高人七级 |园豆:25475 | 2010-08-15 16:03
谢了
三月软件工作室——任忌 | 园豆:524 (小虾三级) | 2010-08-15 16:05
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册