protected void lvCountry_PagePropertiesChanging(object sender, PagePropertiesChangingEventArgs e) { lblError.Text = string.Empty; lblError.Visible = false; lblSave.Text = string.Empty; lblSave.Visible = false; lblMessage.Visible = false; lblMessage.Text = string.Empty; PagerRow.SetPageProperties(e.StartRowIndex, e.MaximumRows, false); DoBind(); }
protected void btnSearch_Click(object sender, ImageClickEventArgs e) { lblError.Text = string.Empty; lblError.Visible = false; lblSave.Text = string.Empty; lblSave.Visible = false; lblMessage.Visible = false; lblMessage.Text = string.Empty; PagerRow.SetPageProperties(0, PagerRow.MaximumRows, true); if (!String.IsNullOrWhiteSpace(txtKeywords.Text)) { hfKeywordSearch.Value = txtKeywords.Text.Trim(); } DoBind(); }