473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Arraylist and Datalist

I'm using C# as code-behind language.
I have 2 arraylists (name, value) of equal length. I want to display the
values in the array lists on my webpage using datalist. I want to display
them in such a way that 1st value in 'name' arraylist should be next to 1st
value in 'value' arraylist and so on. (The result should be like 2 columns
and 'length of arraylist' rows). How can I achieve this?

Regards
Steven
Nov 19 '05 #1
0 963

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

Similar topics

2
by: Charlie | last post by:
Hi: I'm trying to bind a DataList to an ArrayList of POC object instances. this.DataList.DataSource = BizEntity.thePOCs; // thePOCs is an ArrayList of POC's which is member of BizEntity class...
7
by: Steven | last post by:
I have 2 arraylists (name and value). Is there anyway that I can make that into one arraylist with 2 columns. First column as name and second column as value? -- Steven
7
by: Dave | last post by:
Hi all, I have... using System.Collections; namespace MyApp.Templates { public class MyPage : System.Web.UI.Page { ArrayList MyArray = new ArrayList();
3
by: Sonny Sablan | last post by:
AryUnderNav = New ArrayList() AryUnderNav.Add("Under $50") AryUnderNav.Add("$50 - $100") AryUnderNav.Add("$100 - $200") AryUnderNav.Add("$200 +") UnderNav.DataSource = AryUnderNav ...
1
by: Steven | last post by:
I have an arraylist and I want to display all the values in the arraylist in a new window (asp.net page) using a datalist. The new window should be like a small popup window. How can I do this? ...
3
by: Bob Lehmann | last post by:
Hi, I'm trying to bind an ArrayList to a DataList. I get the error DataBinder.Eval: 'System.String' does not contain a property with the name Name. I don't know what property of ArrayList...
2
by: RAB | last post by:
I created an arraylist. Some items need to be indented. .... MyList.Add("Text") MyList.Add(" Text2") MyList.Add(" Next text") ..... I then databind the arraylist with a datalist...
1
by: npverni | last post by:
I have datalist binding to an arraylist of custom objects (defined in a class "PageItem"). What I am trying to do is access the source PageItem object in an ItemCommand event handler of the...
1
by: =?Utf-8?B?SkI=?= | last post by:
Hello My pgm1 (User Interface Level) passes an empty ArrayList to pgm2 (Business Logic Level). pgm2 then calls pgm3 (Data Access Level) to populate the ArrayList. Question1: When pgm2 gets...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.