利用AjaxPro從客戶端調用服務端函數的方法

 

很簡單,首先,引用AjaxPro.dll組件。
 
在頁面載入時爲客戶端註冊一個類型:
  protected void Page_Load(object sender, EventArgs e)
 {
  AjaxPro. Utility.RegisterTypeForAjax(typeof(ExamPaperManager));
 }

 

實現觸發綁定的方法:
[AjaxPro. AjaxMethod]
private void bindSubject(string subIDList)
{
  /*事件處理 */
}

 

 
客戶端頁面調用的方法:
<script>
        function ReBind(id) {
            ExamPaperManager.bindSubject(id);
        }
</script>
相關文章
相關標籤/搜索