protected void SearchField() { List <Product> searchedProduct = new List <Product>(); WbsDAL wbsdal = new WbsDAL(); wbsdal.OpenConnection(ConfigurationManager.ConnectionStrings["WebbShopConnectionString"].ConnectionString); searchedProduct = wbsdal.GetSearchProduct(txtSearchbox.Text); Session["SearchedProduct"] = searchedProduct; Response.Redirect("~/SearchResult.aspx"); }