Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to create page navigation linkbuttons

Status
Not open for further replies.

DixieFlatline

Programmer
Aug 2, 2000
57
CA
Hi,

Does anyone have any idea how to create the common page navigation links on asp.net?

prev 1 2 3 4 next

used for traversing db record set?
since the number of of link buttons depends on how many records are returned and how many records the user would like to display on a page, i am lost as to how i can add these links or linkbuttons dynamically. in jsp or old asp, I just write a scriptlet and embed the page number as a query string variable. but under the .net model, i am not supposed to use scriptlets... how do i generate these links. I tried using a place holder and adding link buttons dynamically, but this proved to be futile as I need to re-add the same controls on the post back before the click event can be detected. please help.

Dix
 
Hey Dix,

One thing you might want to check out is the DataGrid control. It comes with its own paging buttons (although you do have to code the buttons yourself, there's enough examples on the net to make this a pretty easy chore), and is pretty formattable as far as how they look.

Something to think about anyway

jack
 
thx,

i didn't realize that it has paging control. i will check it out.

cheers,

dix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top