public void GetAll() { MemberServClient msc = new MemberServClient(); int count = msc.GetCount("鸡蛋", "Products"); int c = msc.GetList("鸡蛋", "Products", 0, 100000).Count(); Response.Write(c); }
protected void btnSearch_Click(object sender, EventArgs e) { MemberServClient msc = new MemberServClient(); string type = ddlist.SelectedValue.ToString(); string kw = tb1.Text.ToString(); int start = 0; int size = 10; int count = msc.GetCount(kw, type); lbCount.Text = count.ToString(); List<Model.Member> list = new List<Model.Member>(); list = msc.GetList(kw, type, start, size); //Model.Member[]mem = msc.GetList(kw,type,start,size); RpMem.DataSource = list; RpMem.DataBind(); msc.Close(); }
protected void btnSearch_Click(object sender, EventArgs e) { MemberServClient msc = new MemberServClient(); string type = ddlist.SelectedValue.ToString(); string kw = tb1.Text.ToString(); int start = 0; int size = 10; int count = msc.GetCount(kw, type); lbCount.Text = count.ToString(); List <Model.Member> list = new List <Model.Member>(); list = msc.GetList(kw, type, start, size); //Model.Member[]mem = msc.GetList(kw,type,start,size); RpMem.DataSource = list; RpMem.DataBind(); msc.Close(); }