protected void GetCourseDetails() { try { BECourseAdmin objBECourseAdmin = new BECourseAdmin(); BCourseAdmin objBCourseAdmin = new BCourseAdmin(); objBECourseAdmin.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID].ToString()); objBCourseAdmin.BGetCourseDetails(objBECourseAdmin); gvCourseDetails.DataSource = objBECourseAdmin.DsResult; objBECourseAdmin = null; objBCourseAdmin = null; } catch (Exception Ex) { ErrorHandlers.ErrorLog.WriteError(Ex); } }