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 131043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:02:36+00:00 2026-05-11T06:02:36+00:00

I have a have a table with Region_Name, Region_ID fields, and another one with

  • 0

I have a have a table with Region_Name, Region_ID fields, and another one with Area_Name, Region_ID fields (each region have Areas that belongs to it). I want to display on my asp.net page a list of links (something that looks like a treeView) so when someone clicks on for ex The Bronx from Region New York in this list:

  • New York

    • The Bronx

    • Brooklyn

    • Manhattan

  • Kentucky

    • Ashland

    • Bardstown

  • New Jersey

    • Essex

    • Middlesex

etc….etc… So, apart from the basics, i want to know how to populate the above list Automatically and make sure that the results are ALL Links, in other words, New York is a link, The Bronx is a link, and all the elements in the list are links that i will later attach a queryString to…

I am using VB.Net and ASP.Net 3.5. Thanks in advance

  • 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. 2026-05-11T06:02:36+00:00Added an answer on May 11, 2026 at 6:02 am

    Thanks for all who answered or attempted to. I found out a different yet easy solution:

    In my page_load i called:

    labelwhatever.text = outputRegionAsLinks()

    and the function is:

    Private Function outputRegionAsLinks() As String     Dim sb As New StringBuilder     Dim regionsTable As GKP.tblRegionsDataTable = Regions.GetRegions()      For Each region In regionsTable         sb.Append('<a href=''>')         sb.Append(region.RegionName)         sb.Append('</a>')         sb.Append('<br />')     Next        Return sb.ToString  End Function 

    This way i can avoid the overload of creating asp link buttons or hyperlinks, and directly inject html tags in my form, and also tailor the links as i wish them to be.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have table structure with 3 colums (column1, column2, column3) and i want to
I have table with 3 columns A B C. I want to select *
i have table unser it i have one td with elemets inside the menu
I have the following query That gets the city name, city id, the region
i have a database of country table. sql 2005 like, country_id country_name region area
I have item, region and category table they are join through item_region ans item_category
I have a table like this: Table A Customer InvoiceNo Region Type Amount A001
I have 4 tables that link together... Firstly the hotels table hotel_id town_id hotel_name
say i have a table Id int Region int Name nvarchar select * from
I have MySQL tables looking like this: regions table id | region ------------------- 1

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.