//repeater绑定数据事件绑定答案dropdownlist
protected void rpQuestionAnswer_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
DropDownList ddl = e.Item.FindControl("drpRightAnswer") as DropDownList;
string[] arrAnswerOption = { "A", "B", "C", "D", "E", "F", "G", "H" };
for (int i = 0; i < iCount; i++)
{
ddl.Items.Add(new ListItem(arrAnswerOption[i], i.ToString()));
}
ddl.DataBind();
//找到对应行
DataRowView drv = e.Item.DataItem as DataRowView;
ddl.SelectedValue = dtList.Select("QuestionID=" + drv["QuestionID"].ToString())[0]["OrderID"].ToString();
}