public void DownloadMasterList() { DataControl.BLUser objUser = new BLUser(); DataControl.CurrentInfo objCurInfo = new CurrentInfo(); string companyCode = objCurInfo.GetCompanyCode(); DataSet Ds = new DataSet(); Ds = objUser.DownloadMasterList(companyCode); Ds.Tables[0].TableName = "Region Details"; Ds.Tables[1].TableName = "Region Type Details"; Ds.Tables[2].TableName = "Region Classification Details"; Ds.Tables[3].TableName = "Expense Group Details"; Ds.Tables[4].TableName = "Price Group Details"; Ds.Tables[5].TableName = "State Details"; Ds.Tables[6].TableName = "City Details"; HttpResponse response = System.Web.HttpContext.Current.Response; DownloadExcel excel = new DownloadExcel(); excel.Convert(Ds, "Master_List" + "_" + DateTime.Now.ToShortDateString(), response); }