protected void btnget_Click(object sender, EventArgs e) { string bcode = txtbcode.Text; BooksClient b = new BooksClient(); var result = b.findbycode(bcode); var list = new List <book> { result }; GridView1.DataSource = list; GridView1.DataBind(); }