Paging 2 Recordset Loops At The Same Time??

I have successfully paged through a recordset on my page using the .recordCount, etc. methods, the only thing is I have 2 independent recordsets looping on the page, which when there was not paging involved this worked fine, however now I need to span the results of BOTH of these across pages, I just cannot seem to figure out how!

I have one set of records paging fine, but the other either messes the page up, or shows on the first page of results and no more of the other recordset, etc.... so yeah that is basically the problem I am hitting, so I was just wondering is there any examples or ways you could tell me to do this??

View Replies


ADVERTISEMENT

Recordset Paging :: Only Show 10 Records At A Time

I'm trying to only show 10 records at a time. I have the first 10 records showing. The problem is that when I click the Next button I get an error message: ADODB.Recordset (0x800A0BB9)

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. Also different people are going to search for different things so there will always be a different amount of records returned each time. I can't figure this out. My code is:

View Replies View Related

W/paging Recordset

Can somone help with this error I am getting?

ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/forms/Start3.asp, line 81

Line 81 is bjRS.PageSize = nItemsPerPage

The rest of my code:

View Replies View Related

How To Recordset Paging

I'll admit to being a bit of a newbie at all this ASP stuff so you'll have to excuse me.

I've been given some work to do on a search results page that was designed by someone else. I have been asked to incorporate some basic paging (Next 10 etc) into someone elses work, but don't really know where to start.

Would it be really cheeky if I posted the page code up on here in hope that some helpful sole could give me a few pointers as to what will need to be added in order to get it working.I thought I'd better 'test the water' with you guys first so to speak.

View Replies View Related

DB Recordset Paging

i have do some research on the ajax paging,but i cant get any solutions. i wan to query out 5records each time when the Next button is clicked or Preview button is clicked without refresh the page with the querystirng above such as xxx&page=1,xxx&page=2. i get some reference of ajax pagingnation, but tis code is call from the external files.
how can i modified the script above to call out my recordset from database? below is the reference from dynamicdrive.com.

http://www.dynamicdrive.com/dynamici...nate/index.htm

i wan to do the record pagingnation like dynamicdrive without refresh the page.and my records are called from the database. i just wan the NExt and Previous button without the numbers

View Replies View Related

ADO Recordset Paging

I was at http://aspfaq.com/show.asp?id=2120,read all techniques.I choose the fasted one -it is the last "SP ROW COUNT".
SP looks like:

CREATE PROCEDURE SampleCDs_Paging_Rowcount
@pagenum INT = 1,
@perpage INT = 50
AS

I want dynamically change SQL select (because I want filter output by something - name, author, year, order and so on).So I thought, it could be nice idea to call stored procedure with added 3 SQL SELECTS as arguments.So it should look like:

CREATE PROCEDURE SampleCDs_Paging_Rowcount -- change name
@pagenum INT = 1,
@perpage INT = 50,
@SQL1 nvarchar(1000),
@SQL2 nvarchar(1000),
@SQL3 nvarchar(1000)
AS

View Replies View Related

Recordset Paging :: Previous And Next

I have an asp page which displays a list of records depending on what was selected via another form.

I want to have these results broken down, displaying only 10 records, with links underneath to display as 'Previous' and 'Next' Code:

View Replies View Related

Recordset Paging Problem

I am creating Recordset paging after a search page. However, I am now getting this error on this line in my code below:

oRecordSet.Open sSQLStatement, oConnection, adOpenStatic, adLockReadOnly

The first results page works fine until I choose another page (PAGE 2) and I get the error:
ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another

The weirdest part is when I put the sql statement out side of the if statement it WORKS!. However, in this context I cant hardcode my sql statement Code:

View Replies View Related

Recordset Paging Issue

I'm receiving the following error when trying to access any page other than the first page of a "paged" recordset:

ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

I've got two files:

page_problem.asp which has an include (pages_support_problem.asp)
Cleaned up versions of these files are attached as text files.

The error is occuring on:
rst.AbsolutePage = PageIndex
of page_problem

I'm running IIS 5/MSSQL2000

View Replies View Related

Recordset Paging With Count

I'm trying to do a paging script for my picture gallery that originally sorted the pics to e.g 4 columns by using a simple count (see below) Code:

View Replies View Related

Recordset Paging System

My question is how would you code in .ASP so my recordset thats in a table to
have a recorset paging that is similar to the one that this site uses or any professional sites? Code:

View Replies View Related

Creating Recordset Paging Using ADO

I'm getting the following error:

ADODB.Recordset (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

but I didn't found any wrong with the code....

View Replies View Related

Recordset Paging Between Frames

Does anybody know where can i get a sample on how to do recordset paging between two frames or between page an iframe that is within.

View Replies View Related

Recordset Paging :: Results From Search

I have a database with several hundered images and I need to retreive them using recordset paging, otherwise the page will be to long. So far so good.

I added a search function which will return only the desired results. The first page returns the search results (30 per page) and I also have a line of code that tells me how many records was found, let's say 70. This should give me 3 pages of results.

But when clicking on the next link I don't get the next set of results, instead ALL the images from the database is returned on the following pages, starting from image 31 in the DB. Not just the rest of the originally search results. Code:

View Replies View Related

Paging Recordset - Grouping Pages

I was wondering how some websites produce the paged numbers when displaying search results, so that if more than say 50 pages exist they group them.

For example:

Pages: 1 2 3 4 5 6 7 8 9 10 (10-20) 20-30)

Then when clicked say '10-20' the following would show:

(0-10) 11 12 13 14 15 16 17 18 19 20 (20-30)

Get the idea??

This looks a lot easier than a list of say 300 pages.

View Replies View Related

Recordset Paging :: Records Not Viewable

I am having a problem with my recordset paging. It does not crash however no records are viewable. It shows no information from my database.

It shows that there are 8456 pages and the href links and thats it.

I also did a response.write(mysql) response.end to check that my sql was correct. It is picking up the correct sql except no information. Code:

View Replies View Related

Recordset: Sorting By Two Fields At The Same Time

I have a database that contains a release list for some products. It's constructed like this:

ID (autonumber)
ProductID (relatednumber)
Date - the date for release
Approx - (number related to text en other table = ApproxRelation)
ApproxYear - (number)

The Approx is a number related to antoher table containing the corresponding text - like "1st quarter", "January", "March" and so on.

I want to sort the release of the products by date, but then mix the sorting with the approximated dates. Like: Code:

View Replies View Related

Loops

Attached is the code that I am trying to put together. Does anyone know how to loop (see bold text below) this so it will display all the data from the columns in this row? Code:

View Replies View Related

Loops And URL's

I am not sure how exactly to put this, but what I need to do is the following: taking into account that there are multiple URL's pointing to the same server

If url=blah.com do nothing
if url=blah-blah.com *break out of frameset.


Now I remember there being an easy way to do this but can't for the life of me remember where to find it?

View Replies View Related

- From Two Different Loops

i have 2 loops that give me 2 sets of 25 numbers. code:

do while not rs.eof
value = rs("value1")
rs.movenext
loop

do while not rs.eof
value = rs("value2")
rs.movenext
loop

i need to subtract value 1 from value 2 for each value in the loop?

View Replies View Related

For Each In Loops

I was hoping someone would be able to explain the "For Each In Loop" set up.

What I'm really asking is when it can be used and how it is set up.

For example:

If I had something like...

Quote: For Each X in objSomeObject
Response.Write X & "<br /">
Next 'X

How do I know I can use the For Each In Loop and what must I do to be able to use the X portion of it?

Sorry if this is a very general question but I want to understand how one can recognise when it is possible to use this structure and when it's not.

More background to this is that I'm going to attempt to use this structure on a listbox in .NET and possible ASP and I want to ensure that I loop through each and every item.

View Replies View Related

Nested Loops

What I'm trying to do is match all buyer requirements in a database table to all available properties in another table. I then want all these matches displayed in a report with the buyer name followed by the relevant matching properties, this should occur until all buyers have been displayed with their matching properties.

The problem is that it only works correctly for the first buyer for which the correct properties are displayed, after that all I get is the buyer names without their matching properties... so it seems to loop perfectly the first time but from then on forgets about the inner loop! Code:

View Replies View Related

While Loops And Dates

I want to find the next event in my sql database. To do this, I have a query in a while loop. I set a new DateTime variable to the current date and run the query, it checks to see if it found a suitable event, if not, I want to increase the day by one and loop again.

View Replies View Related

Arrays And Loops

What I have is a recordset listing out a group of names. I've retrieved the field that lists the id numbers for the array and split them to a list. Then I want it to loop through the names listing trying to highlight the ids that need to be hightlighted.

What I am getting is my list repeats the names according to how many ids are in the array. So if I have 2 numbers in the array I see every name on the list twice and the two that I need selected.

I want the list to show the names one time with the correct names selected. What is wrong with this code? Code:

View Replies View Related

Loops And Arrays

I have two 2-dimensional arrays (made by using GetRows()) What I need to do is:

Loop
If Arr1(0) = Arr2(0) then
do an update....
End if
End Loop

Basically I need to compare each value in Arr1(0) to the values in Arr2(0) - if I get a match, I have to do an update in the database. What is the easiest way to do this .

View Replies View Related

Type Of Loops

there are various of loops but i am analyzing to use which one. maybe i could get some opinions from u all. there are

while wend, for loop, do loop

my situation is if i need 2 execute on a daily basis data on the particular month and will stop on the last day of the month.. without interseeing to the next month

can anyone might help me by suggesting on the suitable loop 2 use for this problem?

View Replies View Related

Problem With Deep Inner Loops

I have some difficulty with deep inner loop. What I want is Eg

Product Category: Air-Cond

Company: ABC
Address: 121, Time City, Malaysia.

Company: XYZ
Address: 1, City, Malaysia.

Product Category: Fridge

Company: MAS
Address: 2, Old Building, Singapore.

Company: SAM
Address: 11 Kiosk, Malaysia.

Basically, the first the first loop is to get all product category and one by one insert into the second inner loop. But, I need another inner loop under the second one, which is to categorized by country. Code:

View Replies View Related

Error Type: ADODB.Recordset (0x800A0BADODB.Recordset (0x800A0BCD)

Last week, my shopping cart was still working well until I began getting the following errors 2days ago..

Error Type:

ADODB.Recordset (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
../order/saveorder.asp, line 157

Browser Type:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)

Page:
GET /main/saveorder.asp

Could you check my code below and let me know what possibly the error is?

View Replies View Related

Time Calculation :: Difference Between Login And Current Time

I would like to display the difference between the logging time
[Session("start"] and the current time [now]. In hours minutes and seconds,
I have tried a couple of things but all I see is gobbledy gook.

View Replies View Related

ASP To Re-load Page From Time To Time To Reset Varaibles

I have a website that I subscribe to that allows me to track tasks. I have an extra computer with a big monitor that i want to always display the task list. the problem is after so many hours I get logged out.

I need to need to reload that sign in url every few hours Code:

View Replies View Related

Comapring Database Time And Computer Date/time

there i was just windering how do i compare a date/time vlaue in sql server agaisnt the computers' date/time.
for example, if computer date/time is two months or 2 weeks before the database date/time do something

View Replies View Related

Time/Date Format And Changing Time To GMT

Currently working on a ASP for a friend, which requires the date and
time on it. It pulls in entries from an Access Database with dates and
times in the format of:

"Fri Oct 17 18:02:46 2003"
However my date and time on the ASP page is displayed as:
"Friday, October 17, 2003 18:02:46"
using the script:
"<%Session.LCID = 1033%>
<%=FormatDateTime(Date(), vbLongDate)%>
<%Session.LCID = 2057%>
<%=time()%>"

Anyone know how to change this script, fully or partly to produce the
date and time on the format that's in the access database i.e. "Fri Oct 17
18:02:46 2003" Code:

View Replies View Related

Time Convert String To OdbcType.Time

I am working on a database that collects information about incidents. One of the fields that people enter is the time of the incident. I am trying to convert that string that people enter into a OdbcType.Time and I am at a lost.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved