how to retrieve the data form list? how many types get data from list?plz give me examples

Posted by Asrinu under SharePoint on 8/2/2010 | Views : 2666 | Status : [Member] | Replies : 2
how to retrieve the data form list? how many types get data from list?plz give me examples
Thanks in advance
A.Srinu




Responses

Posted by: Vaishali.fresher on: 8/2/2010 [Member] Starter

Up
0
Down
you are talking about what kind of lists?

Asrinu, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhilan on: 8/4/2010 [Member] Starter

Up
0
Down
List<string> Name= new List<string>();


colorList.Add ("Muhil");
colorList.Add ("Muhil1");

Several Ways we can get values from List

1.
foreach (string objName in Name)

{
Console.WriteLine ( objName );
}

2.

string str=Name[0];


3.

string[] strArray=Name.ToArray();


Asrinu, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response