Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户按下更新按钮 DataBound 事件开始时。如何锁定此事件?当 gridview 枚举每一行时,需要很长时间等待。
DataBind你不应该GridView在回发。所以只需将它包装在一个!IsPostBack:
DataBind
GridView
!IsPostBack
protected void Page_Load(Object sender, EventArgs e) { if(!IsPostBack) { DataBindGridView(); } }