public PartialViewResult Options(int qnumber, int type, int topicid = -1, string viewName = "_Options") { ((dynamic) base.ViewBag).type = type; ((dynamic) base.ViewBag).topicid = topicid; ((dynamic) base.ViewBag).qnumber = qnumber; List<Maticsoft.Model.Poll.Options> modelList = new Maticsoft.BLL.Poll.Options().GetModelList(string.Format(" TopicID={0}", topicid)); return this.PartialView(viewName, modelList); }
public void BindData(int FormID) { Maticsoft.BLL.Poll.Options options = new Maticsoft.BLL.Poll.Options(); DataTable table = options.GetCountList(FormID).Tables[0]; this.ViewState["dtcount"] = table; DataSet listByForm = new Maticsoft.BLL.Poll.Topics().GetListByForm(FormID); this.gridViewTopic.DataSource = listByForm; this.gridViewTopic.DataBind(); }
public ActionResult ResultOptions(int tid, string viewName = "_ResultOptions") { List<Maticsoft.Model.Poll.Options> countList = new Maticsoft.BLL.Poll.Options().GetCountList(" TopicID=" + tid); return base.View(viewName, countList); }