protected void btnLast_Click(object sender, EventArgs e) { string searchText = txtSearch.Text; int businessType = Convert.ToInt32(ddlBusinessCategory.SelectedItem.Value); rptBusinessInfo.DataSource = BusinessSearchManager.SearchBusinessInfosPaged(searchText, businessType, ++currentIndex, 10); rptBusinessInfo.DataBind(); }
//e.g. Total Record = 83; Page Size = 10; //Solution: Value = Convert.toInt32(Total Record / Page Size); if ((Value * 10) <= Total Record) Last Page = Value; else Last Page = Value + 1;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)