protected void rpList_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataRowView row = e.Item.DataItem as DataRowView; Repeater rpSubList = e.Item.FindControl("rpSubList") as Repeater; AnswerBll abll = new AnswerBll(); rpSubList.DataSource = abll.GetModelOfQuestion(Convert.ToInt32(row["QuestionId"])); rpSubList.DataBind(); }
private void BindAnswers() { AnswerBll abll = new AnswerBll(); this.rpAnswers.DataSource = abll.GetModelOfQuestion(int.Parse(this.lblQuestionId.Text)); this.rpAnswers.DataBind(); }