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

  • SEARCH
  • Home
  • 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 8303885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:39:01+00:00 2026-06-08T17:39:01+00:00

I have been making some progress on this but still have some issues to

  • 0

I have been making some progress on this but still have some issues to resolve.

Hopefully, this one won’t be that hard.

I have this:

For Each item In Request.QueryString("doc").Split(","c)
    sb.Append("http://default.html?k=")
    sb.Append(item)
    sb.Append("&p=2&o=m</p>")
Next

When I test this code:

Response.Write(sb.ToString())

I get:

http://default.html?k=122&p=2&o=m

http://default.html?k=123&p=2&o=m

That’s exactly what we are looking for

When we assign it to a variable like:

Dim linkList As String = sb.ToString()

However, when I loop through linkList
and write it to the screen, it is spitting out only the letter h.

Any ideas what I am doing wrong and how to fix it if possible?

Dim link As String

For Each link I linkList

    'let me know if I am still getting the links
    response.write link

    'we will save all the links later
Next

As always, thanks a lot for your help

  • 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-06-08T17:39:03+00:00Added an answer on June 8, 2026 at 5:39 pm

    You can not loop through a string and get another string (note: linkList is a String – Dim linkList As String = sb.ToString()). That’s why you get the h it’s trying to pick the Chars in the string. Place the strings in an array then loop through the array. Try this:

    Dim linkArray() As String
    
    For Each item In Request.QueryString("doc").Split(","c)
        Dim stb As New StringBuilder
        stb.Append("http://default.html?k=")
        stb.Append(item)
        stb.Append("&p=2&o=m</p>")
        linkArray.add(stb.toString())
    Next
    
    For Each link As String In linkArray
        response.write link
    Next
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some time i have been making more or less little games. One level
I have tried making a fiddle for this, but it's been too difficult to
I have been tasked with making some edits to a legacy system that is
I inherited a Drupal5 site and have been tasked with making some changes, but
I have been making some research in the domain of servers for a website
I am making a game that needs a crosshair. I have been playing with
Have been looking on some tutorials for drawing canvas using SurfaceView, but the only
Hobbyist Cocoa programmer here. Have been looking around all the usual places, but this
I have been making a wordpress template. i got stuck at some place... the
I have been finding ways around this for a long time but think it's

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.