好久沒有上CSDN了﹐今天小試牛刀,關于asp.net的事件執行的原理
<aspatagrid id= "da1 " Runat= "server " CellPadding= "2 " CellSpacing= "1 " BackColor= "#3366CC "
Width= "99% " BorderWidth= "0 " AutoGenerateColumns= "False " AllowPaging= "True " PageSize= "10 "
PagerStyle-Mode= "NumericPages " OnPageIndexChanged= "PageIndexChanged ">
OnPageIndexChanged= "PageIndexChanged "
this.da1.PageIndexChanged+=new DataGridPageChangedEventHandler(da1_PageIndexChanged);
和在aspx.cs中寫OnPageIndexChanged= "PageIndexChanged "
在aspx添加處理程序和在aspx.cs文件添加處理程序有什么區別?
[解决办法]
不用第二种方式的.