protected void gvTransDetails_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { try { BECourseAdmin objBECourseAdmin = new BECourseAdmin(); BCourseAdmin objBCourseAdmin = new BCourseAdmin(); objBECourseAdmin.IntStudentID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["StudentID"].ToString())); objBECourseAdmin.IntUserID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.USERID]); objBCourseAdmin.BGetStudentTransactionsByLoggedInCourseAdminCourses(objBECourseAdmin); gvTransDetails.DataSource = objBECourseAdmin.DtResult; } catch (Exception) { } }