protected void EventFileList() { BusinessServices.Event objEvent = new BusinessServices.Event(); DataTable dtEvent = objEvent.GetEventFileName(int.Parse(ViewState["EventID"].ToString()), int.Parse(ViewState["EventPeriodID"].ToString())); if (dtEvent.Rows.Count > 0) { gvFile.DataSource = dtEvent; gvFile.DataBind(); } }