Is there any way to retrieve a table from a web service to a wp7 app page as its?
i just wanna sth easy to use than making a table each time getting data
Is there any way to retrieve a table from a web service to a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have look on MSDN for System.Xml namespace. It contains lot of usable classes. You should use XmlReader or something similair to load it to array or generic collection. Hope this helps, ’cause bit unclear question.
EDIT:
This is the code what have I done for loading sample data to generic collection:
Sample data:
Code:
So. This code is loading XMLDocument with sample data and it’s selecting data of each studentPunishmentsTable into new object of StudentPunishment class. There’re properties for holding that data. After everything is done and object of student’s punishment is added into generic collection (‘List’), code is trying to show date of first object in collection. You can test is yourself, it’s working for me.