首页 新闻 搜索 专区 学院

ASP.NET 图片 翻页

0
悬赏园豆:50 [已关闭问题]

如图,在自动套用控件后,出现了类似"> >>"的翻页功能条,我想先删除掉改功能条,换成自己的图片,做到点击图片来翻页,包括跳转到第几页,能显示共有多少页,当前第几页等信息。请问一下我应该怎么做,我是初学者。。。

伊一线天的主页 伊一线天 | 初学一级 | 园豆:17
提问于:2009-09-25 17:38
< >
分享
其他回答(2)
0
Mr雨 | 园豆:1199 (小虾三级) | 2009-09-25 17:42
0

GrideView?是的话,里面加这个

 

<PagerTemplate>
                <div style="text-align: right; height: 30px; line-height: 30px">
                    <asp:LinkButton ID="cmdFirstPage" runat="server" CommandName="Page" CommandArgument="First"
                        CssClass="item" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>"
                        meta:resourcekey="cmdFirstPageResource1">首页</asp:LinkButton>
                    <asp:LinkButton ID="cmdPreview" runat="server" CommandArgument="Prev" CommandName="Page"
                        CssClass="item" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=0 %>"
                        meta:resourcekey="cmdPreviewResource1">上一页</asp:LinkButton>
                    <asp:Literal ID="Literal7" runat="server" meta:resourcekey="Literal7Resource1" Text=""></asp:Literal><asp:Label
                        ID="lblcurPage" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageIndex+1 %>'
                        meta:resourcekey="lblcurPageResource1"></asp:Label><asp:Literal ID="Literal8" runat="server"
                            meta:resourcekey="Literal8Resource1" Text="/"></asp:Literal>
                    <asp:Label ID="lblPageCount" runat="server" Text='<%# ((GridView)Container.Parent.Parent).PageCount %>'
                        meta:resourcekey="lblPageCountResource1"></asp:Label><asp:Literal ID="Literal9" runat="server"
                            meta:resourcekey="Literal9Resource1" Text=""></asp:Literal>
                    <asp:LinkButton ID="cmdNext" runat="server" CommandName="Page" CommandArgument="Next"
                        CssClass="item" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                        meta:resourcekey="cmdNextResource1">下一页</asp:LinkButton>
                    <asp:LinkButton ID="cmdLastPage" runat="server" CommandArgument="Last" CommandName="Page"
                        CssClass="item" Enabled="<%# ((GridView)Container.Parent.Parent).PageIndex!=((GridView)Container.Parent.Parent).PageCount-1 %>"
                        meta:resourcekey="cmdLastPageResource1">最后一页 </asp:LinkButton>
                </div>
            </PagerTemplate>

wsky | 园豆:558 (小虾三级) | 2009-09-26 13:22
0

还有你可以把按钮换成ImageButton然后选择你的图片路径就行了。

太平洋 | 园豆:141 (初学一级) | 2009-09-26 22:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册