Code Snippet posted by:
Rajni.Shekhar | Posted on: 4/18/2012 | Category:
ASP.NET Codes | Views: 464 | Status:
[Member] |
Points: 40
|
Alert Moderator
// Create a string of array
string[] arrString = new string[3];
//assign values in array
arrString ={"Text1", "Text2", "Text3"};
// Add the array items to the list box.
for (int iIndex = 0; iIndex <= ListContents.Length - 1; iIndex++)
ListBox1.Items.Add(arrString [iIndex]);
Thanks,
Rajni Shekhar