Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Experts,

How can i read values from List<> in asp.net.....


C#
public class Data
{
        public string Month { get; set; }
        public int Bikes { get; set; }
        public int Parts { get; set; }
}


C#
[WebMethod]
public static void PostData(List<Data> data)
{
  //get the data
}


How can i read values from the above mentioned example...

please Help me..

Thanks and Regards,

Dileep
Posted
Comments
[no name] 28-Apr-13 11:29am    
What? You mean
foreach (Data d in data)
{
// do something with the data
}
?

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900