2012-01-05 45 views
1

相關的GridView從數據庫中我已經GridView控件綁定..問題在ASP.net

我有下面的代碼:當用戶選擇了一些

protected void Page_Load(object sender, EventArgs e) 
    { 
     BindGrid(); 
    } 

現在,我有checkBoxdrop-down GridView控件,裏面從複選框,並單擊行上Update ButtonPage_Load事件觸發,並呼籲BindGrid();方法和選擇的行應該得到隱藏。

如何在頁面加載事件後保留複選框值。

我不想用IsPostBack財產在頁面加載,因爲我已經使用尋呼。

我怎樣才能解決我的問題?

回答

2

製作使用的IsPostBack的..從pagaing事件

function of paging event 
{ 
BindGrid(); 
}