0

I've used paged datasource but I need page numbers to be listed on the .aspx like this

1 2 3 4 5 ... 16 next last

How to achieve this? any idea?

Or please suggest me another way of paging. I can devexpress tools too..

4

1 回答 1

2

1.You can use LinkButton, with Server.Transfer or ResponseRedirect methods.

<asp:LinkButton id="LinkButton1" runat="server" Text="1"/>
<asp:LinkButton id="LinkButton2" runat="server" Text="2"/>
.....

  void LinkButton1_Click(Object sender, EventArgs e) 
  {
     Server.Transfer("...");
  }

Note :

  1. You can add dynamically your linkbuttons with PlaceHolderControl

  2. You can use TreeView Control Navigation

  3. You can use Menu Control Navigation

  4. You can use WizardStep Control

  5. You can also try with this custom library

于 2012-07-29T17:00:49.443 回答