IOT Virtual Conference - Register now to book your ticket and get updates
x
CONGRATULATIONS! C# Corner Q1, 2021 MVPs Announced
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
tola Ibironke
2k
8
2.4k
c# programming
Sep 4 2014 9:52 PM
I am new to c# and mvc and i'm trying to learn this stuff by myself. Can anybody help me please.
I created this two tables
public class TVListData
{
public string Message { get; set; }
public List<ListElement> Rows { get; set; }
public string Status { get; set; }
}
public class ListElement
{
public string Description { get; set; }
public string Id { get; set; }
}
public List<TVListData> GetErrorCodes()
{
return GetList("get_error_code_list");
}
public List<TVListData> GetWarranties()
{
return GetList("get_warranty_list");
}
private List<TVListData> GetList(string listData)
{
foreach ()// I want to iterate through but i'm not sure what to iterate here
{
//i'm not sure of what to do here
}
return new RTCListData
{
//i can do object initialization here
};
Thanks,
tola
Reply
Answers (
4
)
object reference not set to an instance of anobjectException
Fixed Gridview Header with Veritcal Scrollling