[SOLVED] Autogenerate List of Links

Issue

I have two tables, one for Regions and one for those regions Areas, I want to automatically create a list of links that will be like:

  1. Region1
    a.Area1
    b.Area2
    c.Area3
  2. Region2
    a.Area1
    etcetc

This link should be generated automatically when I load my page.
The items in the list are not only text, when I click on Area1, I will call a function passing Area1 Region1 IDs to do some action in my function, keep in mind that the user might click Area1 from Region1 or might just click Region1.

I am using asp.net 3.5 and vb.net.

Solution

I think the reason your question is not getting answered is that it involves too many fundamentals. if someone writes all this for you from scratch you’ll have difficulty taking it any further. I would recommend looking at some ASP.NET beginners articles, work out how to write code which reacts to control events (e.g. LinkButton clicks), how to query a database, how to dynamcially populate a page etc. Then, if you have any more specific questions, ask again.

Answered By – Adam Ralph

Answer Checked By – Gilberto Lyons (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *