Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 08-30-2007, 01:20 AM ASP problem?
Experienced Talker

Posts: 44
Trades: 0
I am new to ASP. I have an access database with two fields namely 'name' and 'comments'. And is working properly with add, delete, update, search etc.
But if the search output is gone beyond 10 items, then how is it possible to make appear the 11th item at the next page.Please help!!!!!!!!!!!!!
__________________

Please login or register to view this content. Registration is FREE

Best Place to hunt for Code
codingmaster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-30-2007, 02:05 AM Re: ASP problem?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
I don't understand ... what's the issue with 10 items? I would have thought you'd have a problem with a column named name, and have to use square brackets like select [name] from someTable ... it sounds more like you're trying to do something like Google, where you get millions of results but they come ten per page?

If that's the case, you want to read the data out of Access and put it into an array instead of directly outputting it to the page. Then you store this in a session variable - maybe an application variable instead if it'll always be the same for every user at any given point. Finally, the page itself needs to get the data from the session or application variable and output that to the page.

So, your first page will show your first ten items from the cache, with a link at the bottom saying "next ten results" or whatever, that points to the same page with query string parameters telling you which range of items to pull from the session variable you created. This will have the side effect of speeding the site up a little, especially if you can store your data at the application level instead of by session. But then when you run an "action query" you need to either update or clear the cache.

Well ... if that's what you were asking about, the good folks here can help you break that down and figure out how to implement each step. If not, then it's something else...
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-30-2007, 03:22 AM Re: ASP problem?
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Recordset Paging will do the trick for you in general terms...you just need to apply it to your specific situation. But that's the general idea.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-30-2007, 04:01 AM Re: ASP problem?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Adam's approach is much better / simpler. It's been a long time since I've had to approach that in asp classic, but you should go with the article he pointed out instead of re-inventing the wheel like I described.

Caching can still be a good idea if your server is under a lot of load, but in general it's better to use the built in stuff than to go adding unneeded complexity, and using more memory.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 09-07-2007, 02:15 AM Re: ASP problem?
Experienced Talker

Posts: 44
Trades: 0
I have got it solved...
__________________

Please login or register to view this content. Registration is FREE

Best Place to hunt for Code
codingmaster is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASP problem?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.61677 seconds with 12 queries