asp.netWebフォームにgridviewがあります。
私は次のようにデータベースをgridviewにバインドします:
SQL = "SELECT id,Fname,Lname FROM MEN";
dsView = new DataSet();
adp = new SqlDataAdapter(SQL, Conn);
adp.Fill(dsView, "MEN");
adp.Dispose();
GridView1.DataSource = dsView.Tables[0].DefaultView;
GridView1.DataBind();
そしてこれをグリッドビューに入れました:allowPaging = true
グリッドにデータが表示されますが、2..3ページを押すと。
そして私はこのエラーを受け取りました:
The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.
前もって感謝します