protected void CurrentRowTextBox_OnTextChanged(object sender, EventArgs e) { TextBox t = (TextBox)sender; try { DataPagertxtValue = Convert.ToInt32(t.Text); } catch { General master = (General)this.Master; master.ShowMessage("Value Out of Range", false); return; } if (t.Text == "") { return; } if (DataPagertxtValue <= QuickSearchDataPager.TotalRowCount && DataPagertxtValue > 0) { QuickSearchDataPager.SetPageProperties(Convert.ToInt32(t.Text) - 1, QuickSearchDataPager.PageSize, true); bindLVQuest(); recalcNoOfPages(); } else { General master = (General)this.Master; master.ShowMessage("Incorrect Input", false); } }
protected void PageJump_SelectedIndexChanged(object sender, System.EventArgs e) { DropDownList PageJumpDDL = (DropDownList)sender; int pageNo = Convert.ToInt32(PageJumpDDL.SelectedValue); int startRowIndex = (pageNo - 1) * QuickSearchDataPager.PageSize; QuickSearchDataPager.SetPageProperties(startRowIndex, QuickSearchDataPager.PageSize, true); recalcNoOfPages(); }