make record go over different pages

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default make record go over different pages

    Im trying to build a website with asp.
    ive got an extra long record that i would like to spread accross different
    pages as i have limited space.
    i want to show only a certain amount of text on each page which im using crop
    sentence function.
    but what im not sure about is how to continue the recordset on a new page from
    where it stopped the last page
    any one help?

    Mo*1 Guest

  2. Similar Questions and Discussions

    1. Make new pages or only edit pages?
      A client asked me to update his site, adding a new link to all pages and adding several new pages. He told me that the original developer of the...
    2. How can I make display weekly record?
      Thank you, its working fine
    3. How can I make display weekly record?
      Thank you MeTin I make table with 3 fields 1-ID 2-last Day 3-Info After that I did what you tell me for SQL and info field it's added in the ASP...
    4. How do I navigate to First and Last record in a Dtagrid having many Pages.
      Hello All, How do I navigate through first and last record in a datagrid. I know we have only Previous and Next option in it . Can I add First and...
  3. #2

    Default Re: make record go over different pages

    Mo*1 wrote:
    > but what im not sure about is how to continue the recordset on a new page from
    > where it stopped the last page
    Insert > Application Objects > Recordset Paging.

    --
    David Powers
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    Co-author "PHP Web Development with DW MX 2004" (Apress)
    [url]http://computerbookshelf.com[/url]
    David Powers Guest

  4. #3

    Default Re: make record go over different pages

    Hi Mo

    Two ways that should work

    1. Create several pages for the record and select the same record each time
    but only show the recordset items you want to show on each page. i.e.
    page1.asp > Display Recordset items 1, 2, 3, 4.
    Then have a link that goes to page2.asp?recordidforfiltering=xxxx

    page2.asp > Dispaly recordset items 5, 6, 7, 8. Add link to page3 etc etc.

    2. Use one page and post back to that page each time but set up regions on
    your page and only show the regions you want for each page view. i.e.
    page1.asp?viewnumber=1

    If Request("viewnumber") = 1 Then
    Show region 1. with a link back to page1.asp something like
    <a href="page1.asp?viewnumber=2">View More</a>
    End If

    If Request("viewnumber") = 2 Then
    Show region 2. with a link back to page1.asp something like
    <a href="page1.asp?viewnumber=3">View More</a>
    End If

    If Request("viewnumber") = 3 Then
    Show region 3. with a link back to page1.asp something like
    <a href="page1.asp?viewnumber=4">View More</a>
    End If

    And so on until you have finished displaying your record.
    A Select Case statement would probably be faster than the IF statement, ut
    thats down to preference I guess.
    Hope this helps.

    Regards
    Bren

    /*************************************
    Why do I climb mountains? Because they are there.
    [url]www.3peakschallenge.co.uk[/url]
    *************************************/


    Bren Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139