redirect if recordset is too many

Ask a Question related to ASP, Design and Development.

  1. #1

    Default redirect if recordset is too many

    How do you redirect users to a page if their search criteria results in too
    many records? I'm trying to speed up the searching process a bit. From what
    I gather, you need to produce the recordset so you can assess if it's too
    much or not. But if the recordset is there, why not show it? The work is
    already done isn't it?

    I just ran a recordset of 80,000 results. I'd like to redirect at about
    1,000 results.

    thanks!


    shank Guest

  2. Similar Questions and Discussions

    1. redirect to guest if first redirect is doesnt work for a user
      Hi all, I was wondering if anyone could help me solve a problem Once a user hits a certain webpage ..I try to redirect them to another using...
    2. response.redirect and recordset/connection object?
      I have the following code. Should I close and release the database objects before run response.redirect("some url")? or will the response.redirect...
    3. RecordSet.Move or RecordSet.AbsolutePosition??
      Hi, I'm trying to use either one of these methods to position the cursor in a specific position inside a recordset, but neither one seems to...
    4. Redirect to more than one URL
      Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: ...
    5. Redirect to New Browser Window like Response.Redirect
      That worked just fine for me as long as you put that open statement on one line rather than 2. "michel" <michely3k@yahoo.com> wrote in...
  3. #2

    Default Re: redirect if recordset is too many

    You could do an initial aggregate - "count(*)" to determine the number
    of hits and redirect if that number is too large. Alternatively, you
    could limit the display of records to 1000 and put either a message
    stating there were 80,000 results and only the first 1000 are shown,
    or just put a paged result where they can show the "next" 1000
    results.



    On Wed, 22 Oct 2003 13:51:52 +0800, "shank" <shank@tampabay.rr.com>
    wrote:
    >How do you redirect users to a page if their search criteria results in too
    >many records? I'm trying to speed up the searching process a bit. From what
    >I gather, you need to produce the recordset so you can assess if it's too
    >much or not. But if the recordset is there, why not show it? The work is
    >already done isn't it?
    >
    >I just ran a recordset of 80,000 results. I'd like to redirect at about
    >1,000 results.
    >
    >thanks!
    >
    Dan Brussee 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