/// <summary>
        /// 获取打分表信息,绑定到表格
        /// </summary>
        public void BindGrid()
        {
            Maticsoft.BLL.dafenbiao dfb = new BLL.dafenbiao();
            DataSet ds = dfb.GetList(10, "", "id");

            VoteView.DataSource = ds;
            VoteView.DataBind();
        }
        /// <summary>
        /// 获取打分表信息,绑定到表格
        /// </summary>
        public void BindGrid()
        {
            Maticsoft.BLL.dafenbiao dfb = new BLL.dafenbiao();
            DataSet ds = dfb.GetList("id>=13 and id <= 20 order by id");

            VoteView.DataSource = ds;
            VoteView.DataBind();
            DataSet ds2 = dfb.GetList("id=21");

            View_yiyuan.DataSource = ds2;
            View_yiyuan.DataBind();
        }
示例#3
0
        /// <summary>
        /// 获取打分表信息,绑定到表格
        /// </summary>
        public void BindGrid()
        {
            Maticsoft.BLL.dafenbiao dfb = new BLL.dafenbiao();
            int     style = Convert.ToInt16(Request.QueryString["style"]);
            DataSet ds    = new DataSet();

            if (style == 1)
            {
                ds = dfb.GetList("id>=11 and id<=12 order by id");
            }
            else
            {
                ds = dfb.GetList("id>=22 order by id");
            }
            VoteView.DataSource = ds;
            VoteView.DataBind();
        }