Click here to Skip to main content
11,933,854 members (57,033 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
hi guys,

i have an arraylist. i have a , under
i want to print the value of array list by using a loop how can i do this please provide some help.
Posted 25-Sep-12 6:56am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hi ,
Check this

    <asp:Table ID="Table1" runat="server">
protected void Page_Load(object sender, EventArgs e)
    string[] test = new string[] { "test", "test2", "test3", "test4" };
    foreach (string item in test)
        TableRow tr = new TableRow();
        TableCell tc = new TableCell();
        tc.Text = item;
Best regards
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Did not get your question what exactly you are looking for…
But if I am not wrong, following is your solution
Public void ReadArrayList(ArrayList list)
	foreach (int i in list)
foreach (ArrayList item in arrList) 
               Fields["KOD"].Value = item[0];
               Fields["DESC"].Value = item[7];
               Fields["QTY"].Value = Convert.ToInt32(item[1]);
               Fields["PRICE"].Value = Convert.ToDouble(item[3]);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web03 | 2.8.151126.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100