protected void Page_Unload(object sender, EventArgs e)
        {
            if (sailsMasterBLL != null)
            {
                sailsMasterBLL.Dispose();
                sailsMasterBLL = null;
            }

            if (permissionUtil != null)
            {
                permissionUtil.Dispose();
                permissionUtil = null;
            }

            if (userUtil != null)
            {
                userUtil.Dispose();
                userUtil = null;
            }

            if (!IsPostBack)
            {
                ClearMessage();
            }
        }
Example #2
0
 protected void Page_Unload(object sender, EventArgs e)
 {
     if (bookingViewBLL != null)
     {
         bookingViewBLL.Dispose();
         bookingViewBLL = null;
     }
     if (userUtil != null)
     {
         userUtil.Dispose();
         userUtil = null;
     }
     if (permissionUtil != null)
     {
         permissionUtil.Dispose();
         permissionUtil = null;
     }
 }
Example #3
0
        protected void Page_Unload(object sender, EventArgs e)
        {
            if (paymentReportBLL != null)
            {
                paymentReportBLL.Dispose();
                paymentReportBLL = null;
            }

            if (userUtil != null)
            {
                userUtil.Dispose();
                userUtil = null;
            }

            if (permissionUtil != null)
            {
                permissionUtil.Dispose();
                permissionUtil = null;
            }
        }