Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Odd Paging results...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  02:16:23  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Take a looksee - http://freeaspcode.net/snitz

The top paging works fine, however if you scroll down, the paging on the bottom does not bold the page that you are currently on; yet I use the same subroutine for each one. Any Idea's? The sub is below...


Sub ShowModPaging(inttotalpages, tfs, intpage)
p_rec = 1
response.write("<tr><td colspan=5 bgcolor=""" & strForumCellColor & """>")
response.write(tfs & "<strong>Pages: </strong>")
Do until p_rec = inttotalpages + 1
if p_rec = Cint(intpage) then
response.write("<strong>" & p_rec & "</strong> | ")
else
response.write("<a href=""default.asp?sortby=" & strModSort & "&sortmethod=" & strModSortMethod & "&page=" & p_rec & "&pagesize=" & strModPageSize & """>")
response.write(p_rec)
response.write("</a> | ")
end if
p_rec = p_rec + 1
Loop
response.write("</font>")
response.write("</td></tr>")
End Sub


---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 07 November 2001 :  02:27:49  Show Profile
When I first goto your Snitz Resource, the 1 on the bottom shows up as a link (not bold either), but if you click on page 2, the bottom works like it should. Going back to page 1 and the bottom is behaving like it should as well.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  02:31:38  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Must be something to do with the querystring then.... Checking it out.

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 07 November 2001 :  02:33:10  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
aha... The bottom call I was defining intpage by request.querystring("page") - I switched it over to strModIntPage and it works good now :) strModIntPage is defined in the top of the script, and if its not defined its automatically set to 1

---------------
-Da_Stimulator
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.83 seconds. Powered By: Snitz Forums 2000 Version 3.4.07