<asp:RadioButtonList ID="rbtnoption" runat="server" RepeatDirection="Vertical"></asp:RadioButtonList>
DataSet ds1 = new DataSet(); ds1 = obj.getOneQuestionExam(res); if (ds1.Tables[0].Rows.Count > 0) { lblquestion.Text = ds1.Tables[0].Rows[0]["q_title"].ToString(); lblqid.Text = ds1.Tables[0].Rows[0]["id"].ToString(); //dloption.DataSource = ds1.Tables[0]; //dloption.DataBind(); rbtnoption.DataTextField = "q_option"; rbtnoption.DataValueField = "oid"; rbtnoption.DataBind();
rbtnoption.DataSource = ds1.Tables[0]; rbtnoption.DataTextField ="q_option"; rbtnoption.DataValueField = "oid"; rbtnoption.DataBind();
rbtnoption.DataSource = ds1.Tables[0];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)