protected void CurrentRowTextBox_OnTextChanged(object sender, EventArgs e)
        {
            TextBox t = (TextBox)sender;

            try
            {
                DataPagertxtValue = Convert.ToInt32(t.Text);
            }
            catch
            {
                LoggedIn master = (LoggedIn)this.Master;
                master.ShowMessage("Value Out of Range", false);
                return;
            }

            if (t.Text == "")
            {
                return;
            }


            if (DataPagertxtValue <= MyAnsDataPager.TotalRowCount && DataPagertxtValue > 0)
            {
                MyAnsDataPager.SetPageProperties(Convert.ToInt32(t.Text) - 1,
                                                 MyAnsDataPager.PageSize, true);
                BindMyAnsList();
                recalcNoOfPages();
            }
            else
            {
                LoggedIn master = (LoggedIn)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) * MyAnsDataPager.PageSize;

            MyAnsDataPager.SetPageProperties(startRowIndex, MyAnsDataPager.PageSize, true);
            recalcNoOfPages();
        }
        public void LatestData()
        {
            int totalRecords  = MyAnsDataPager.TotalRowCount;
            int recordperpage = Convert.ToInt32(MyAnsDataPager.PageSize);

            if (totalRecords > recordperpage)
            {
                if (totalRecords - recordperpage > recordperpage)
                {
                    MyAnsDataPager.SetPageProperties((totalRecords - recordperpage), MyAnsDataPager.MaximumRows, true);
                }
                else
                {
                    MyAnsDataPager.SetPageProperties(recordperpage, MyAnsDataPager.MaximumRows, true);
                }
            }
        }