Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 387455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:40:30+00:00 2026-05-12T15:40:30+00:00

Hi i have a problem with this asp pagination. it seems to be putting

  • 0

Hi i have a problem with this asp pagination. it seems to be putting all the links in the one row, so i think it might have something to do with the check of the int i…
but im not that familar with asp. can anyone shed any light on this problem.

the folders contain pdfs for each day of the month, named A08P2.pdf A09P2.pdf etc…

Thanks

i = 1
Set fc = f.Files 
Set ff = f.SubFolders 
For Each f1 in fc
intPage =  cint(mid(f1.name,2,2))

chrEdition = mid(f1.name,1,1)

if chrEdition = "A" then
    if i = 1 then
        Response.Write "<tr>"
    end if
        Response.Write "<td width='40' align='center'><a href=" & sUP & f1.name & " class='blue_11px'>" & intPage & "</a></td>"
    if i = 10 then
        Response.Write "</tr>"
        i = 0
    end if
end if

i = i + 1
Next  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:40:30+00:00Added an answer on May 12, 2026 at 3:40 pm

    You should move the incrementing of the i (i=i+1) inside the if…end if, since if i is 9 and you encounter two chrEditions that are not ‘A’ then i will become 11 and will never match the closing condition i=10:

    if chrEdition = "A" then
        if i = 1 then
                Response.Write "<tr>"
        end if
                Response.Write "<td width='40' align='center'><a href=" & sUP & f1.name & " class='blue_11px'>" & intPage & "</a></td>"
        if i = 10 then
                Response.Write "</tr>"
                i = 0
        end if
    
        i = i + 1
    end if
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

everybody; I have this problem in asp.net, I have a page where I insert
I have this problem in my ASP.NET application where I'm seeing some of my
I am trying to learn ASP.NET MVC and I hit this problem: I have
Im doing a page in .asp and im having this problem ... I have
I have this code: <a href=index.asp onclick=<%Session(example) = True%>>LINK</a> The problem is that this
Weired problem! ASP.NET Session expires instantly. In my web.config I have this session settings:
I am in ASP.NET, but the problem is completely HTML related. I have this
I have this problem when trying to read a session in another asp.net page.
I am using asp.net mvc 2.0(default binding model) and I have this problem. I
I have this problem : [InvalidOperationException: No data exists for the row / column.]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.