ok so I want to know how the response.redirect works
in one page i do a search for items
page1
protected void _btnSearch_Click(object sender, EventArgs e)
{
Response.Redirect(Pages.TradeUp.Default + "?SearchItem=" + Server.UrlEncode(_txtSearch.Text));
}
on my "default" page I want to display my results how do I receive my search request to show on the page
here is page 2:
else
{
//Get Items by name search
// should i have something like this?
.ReceiveValue.Text = Request.QueryString(“SearchItem”).ToString
IList<Item> Items = DaoFactory.FindAll<Item>(Where.Item.Name.Like("%" + SearchItem + "%") || Where.Item.Description.Like("%" + SearchItem + "%"));
_gdvItems.DataSource = Items;
_gdvItems.DataBind();
}
I appreciate if someone can help me.