skip to Main Content

For loop takes the the max count – Asp.net

private List<SurveyDetail> GetSurveyDetails() { List<SurveyDetail> surveyDetails = new List<SurveyDetail>(); SurveyDetail detail = new SurveyDetail(); int cid = 0; for (int i = 1; i < 3; i++) { detail.choiceId = "1"; detail.choiceDesc = "tesT"; detail.questionId = i.ToString(); surveyDetails.Add(detail); } return…

VIEW QUESTION
Back To Top
Search