protected void grdData_RowDataBound(object sender, GridViewRowEventArgs e) { var drvData = (DAL.CompetitionQuestion)e.Row.DataItem; if (e.Row.RowType == DataControlRowType.DataRow) { var strLiteral = Template; var strOption = ""; strLiteral = strLiteral.Replace("[Question]", drvData.QuestionBody); var query = BLL.Competitions.GetOptionByQuestionID(drvData.QuestionID); foreach (var item in query) { strOption = strOption + string.Format("<input type=\"radio\" name=\"{0}\" value=\"{1}\"> {1}<br/>",item.QuestionID,item.OptionBody); } strLiteral = strLiteral.Replace("[Option]",strOption); e.Row.Cells[0].Text = strLiteral; } }
protected void btnVote_Click(object sender, EventArgs e) { what i must write here for access to html radio button }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)