private void bindLVQuery() { General master = (General)this.Master; QuestAnsBAL QueryBAL = new QuestAnsBAL(); DataTable dt = new DataTable(); if (QueryBAL.GetRecentData(ref dt)) { this.lvQueryList.DataSource = dt; lvQueryList.DataBind(); recalcNoOfPagesQuery(); } else { this.lvQueryList.DataSource = null; lvQueryList.DataBind(); master.ShowMessage("UnSuccessful", false); } }