摘要:
UpdatePanel异步刷新要用到的几个控件:1.ScriptManager2.UpdatePanel3.UpdateProgress解决异步刷新后js失效的2种方法:1.后台重新注册JS方法 ScriptManager.RegisterStartupScript(Page, typeof(string), "Sort", "Fun_Sort();", true);Fun_Sort()为要前台重新注册的js方法。2.使用Sys.WebForms.PageRequestManager 类重新注册方法<script type="text/j 阅读全文
摘要:
后台代码using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;namespace WebApplication1{ public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e)... 阅读全文