levi
levi

Reputation: 3511

Paged Datasource With Pages Enumerated in .aspx

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..

Upvotes: 0

Views: 97

Answers (1)

Aghilas Yakoub
Aghilas Yakoub

Reputation: 28970

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

Upvotes: 2

Related Questions