会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
在技术的道路上摸索前进
博客园
首页
新随笔
联系
订阅
管理
记录下gridview 分页代码
<
PagerTemplate
>
<
asp:LinkButton ID
=
"
LinkButtonFirstPage
"
runat
=
"
server
"
CommandArgument
=
"
First
"
CommandName
=
"
Page
"
Visible
=
"
<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>
"
>
First
</
asp:LinkButton
>
<
asp:LinkButton ID
=
"
LinkButtonPreviousPage
"
runat
=
"
server
"
CommandArgument
=
"
Prev
"
CommandName
=
"
Page
"
Visible
=
"
<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>
"
>
Previous
</
asp:LinkButton
>
<
asp:LinkButton ID
=
"
LinkButtonNextPage
"
runat
=
"
server
"
CommandArgument
=
"
Next
"
CommandName
=
"
Page
"
Visible
=
"
<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>
"
>
Next
</
asp:LinkButton
>
<
asp:LinkButton ID
=
"
LinkButtonLastPage
"
runat
=
"
server
"
CommandArgument
=
"
Last
"
CommandName
=
"
Page
"
Visible
=
"
<%# ((GridView)Container.NamingContainer).PageIndex != ((GridView)Container.NamingContainer).PageCount - 1 %>
"
>
Last
</
asp:LinkButton
>
<
asp:TextBox ID
=
"
textBox_1
"
runat
=
"
server
"
Width
=
"
30px
"
></
asp:TextBox
>
<
asp:Button ID
=
"
button_1
"
runat
=
"
server
"
Width
=
"
40px
"
Text
=
"
GO
"
OnClick
=
"
button_click
"
/>
</
PagerTemplate
>
posted @
2008-06-13 10:50
TerryLove
阅读(
1043
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告