hi. i am not sure how to solve this issue with paging when search is
avalible. it is for a webshop so at first i get products default, then
visotors can lets say do a search for brands. but my problem becomes
that my paging cause a postback everytime i change page. how is it done
to avoid that problem. here is my code i use
protected void Page_Load(object sender, EventArgs e)
{
if ((Request.QueryString["Page"] != null))
{
CurrentPage = int.Parse(Request.QueryString["Page"]);
}
if (!Page.IsPostBack)
{
BindMachinaryDetails(8);
}
}
void BindMachinaryDetails(int catid)//mchar
{
var col = (ICollection)ObjectFactory.GetInstance<IReceiverService>().GetAll();
if (col.Count > 0)
{
var objPds = new PagedDataSource
{
DataSource = col,
...
Go to the complete details ...