前台 aspx

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

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Repeater ID="rp_list" runat="server">

 </asp:Repeater>

</ContentTemplate>
</asp:UpdatePanel>

JS

function InitPage(){

//想要执行的操作

}

repeater 中有一些数据是通过JS控制的,当换页是,执行的只是局部刷新,不执行updatePanel 外面的JS,所以需要绑定完后掉用一些JS,代码如下

后台 aspx.cn

ScriptManager.RegisterStartupScript(this.Page, this.ScriptManager1.GetType(), "SetMediaSource", "InitPage()", true);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-02-19
  • 2022-02-06
  • 2021-12-24
  • 2022-12-23
  • 2021-06-15
猜你喜欢
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-12-21
相关资源
相似解决方案