2008年2月14日 星期四

如何於updatepanel1中按下按鈕後更新updatepanel2

updatepanel1內含button1
updatepanel2內含sqldatasource1,gridview1
於Button1_Click()中會異動資料庫並造成sqldatasource1的結果有所改變,必須即時更新gridview1內容
則於更新資料後要執行SqlDataSource1.DataBind(),GridView1.DataBind()
且updatepanel2加入非同步回傳觸發針對button1之click事件
如此便可即時更新gridview1

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...