473,503 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display simple list

I am trying to build a simple asp.net project. What sort of control do I
need to use to simply display a list of links in a table format? For
example, let's say I have a database table:

tblNames
ID Name
1 Blue
2 Grey
3 Green

And I want to display these in the format of the web page:

Blue
Grey
Green

so that I can keep on adding names to the table and the page refresh will be
able to handle any new names. Then, if you click on a link, you go to the
appropriate page using ID as the identifier.

How can I do this? What control do I use for this. Can somebody please give
me some sample code or other guidance of how I "bind" this to a control in
clickable format?

Thanks.

Nov 20 '05 #1
1 993
* "timmso" <ti**************@Yahoo.com> scripsit:
I am trying to build a simple asp.net project. What sort of control do I
need to use to simply display a list of links in a table format? For
example, let's say I have a database table:

tblNames
ID Name
1 Blue
2 Grey
3 Green

And I want to display these in the format of the web page:

Blue
Grey
Green

so that I can keep on adding names to the table and the page refresh will be
able to handle any new names. Then, if you click on a link, you go to the
appropriate page using ID as the identifier.

How can I do this? What control do I use for this. Can somebody please give
me some sample code or other guidance of how I "bind" this to a control in
clickable format?


A datagrid control...

You will get more information there:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet.datagridc ontrol>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3356
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. ...
3
2147
by: StepH | last post by:
Hi, I'm building a little application, which the goal is to: 1./ Collect data via Serial line and or via a file (for playback). 2./ Display these data as graph, oscilloscope, ... How manage...
2
1725
by: William Gill | last post by:
I need to display a couple of labels and a checkbox from each entry in my database. Simple enough, but there are several hundred records, and I only want to display 5 or 10 at a time. Can this be...
3
12079
by: B Love | last post by:
I would like to display a drop-down list on a form conditional on the value of another field on the same form. I am not sure if this is good form or not. I am using Access97, but have access to...
1
1723
by: timmso | last post by:
I am trying to build a simple asp.net project. What sort of control do I need to use to simply display a list of links in a table format? For example, let's say I have a database table: tblNames...
0
1071
by: Jonathan L. | last post by:
I've got a relatively simple scenario that I haven't been able to solve in ASP 2.0. Let's assume I have a simple foreign key relationship as demonstrated below: ------------------- ...
0
1273
by: KMZ_state | last post by:
Here is my code: ************ IList meclist = Lookbll.GetMEC(); drpMEC.DataSource = meclist; drpMEC.DataValueField = "MEC_CODE"; drpMEC.DataTextField = "DESCRIPTION"; drpMEC.DataBind();...
2
2051
by: mervyntracy | last post by:
Hi There, I have recently started coding in asp.net (just 2 and a half days now). I am writing a simple test app that gets data from a data base and displays the value perfectly in the drop down...
7
4026
by: khinester | last post by:
Hello, I have the following template that basically does the following: User select Country, then a sub-list is generated with Regions and then this returns the Counties ############### ...
3
1968
by: dlamarche | last post by:
Hello I am new to PHP and I am reading the book Build you own database driven website using PHP and MySQL. I am trying something on my own as an exercise from the book. I sucessfully created a...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.