示例#1
0
        private void showInfoByPayFor()
        {
            TBInfoService infoService = new TBInfoService();
            ArrayList     list1       = infoService.GetInfoList(0, "", 8, 1, 0);

            Repeater_Payfor.DataSource = list1;
            Repeater_Payfor.DataBind();

            ArrayList list0 = infoService.GetInfoList(2, "", 5, 0, -1);

            Repeater_FreeInfo2.DataSource = list0;
            Repeater_FreeInfo2.DataBind();

            ArrayList list7 = infoService.GetInfoList(7, "", 5, 0, -1);

            Repeater_FreeInfo7.DataSource = list7;
            Repeater_FreeInfo7.DataBind();
        }
        private void showData()
        {
            TBInfoService infoService = new TBInfoService();
            int           typeId      = Convert.ToInt32(DropDownList_Type.SelectedValue);
            string        key         = TextBox_Keys.Text.Trim();
            ArrayList     list        = infoService.GetInfoList(typeId, key, 0, -1, searchtype);

            GridView_Info.DataSource = list;
            GridView_Info.DataBind();
        }