protected void SearchMethod()
        {
            tb.Clear();
            sr = new WcfServiceLib.Service1();
            List<Post> lp = sr.findPosts(Search.Text);

            foreach (Post p in lp)
            {

                createTable(p.Type, p.Details, p.Price, p.PhoneNr, p.Address, p.PostalCode, p.Expiration, p.IsReserved, p.Id);
            }


            Gv1.DataSource = tb;
            Gv1.DataBind();
            ViewState["table1"] = tb;
        }
 public List<Post> FindPosts(string type)
 {
     WcfServiceLib.Service1 service = new WcfServiceLib.Service1();
     return service.findPosts(type);
 }