protected void Page_Load(object sender, EventArgs e) { ServicesMapper servicesMapper = new ServicesMapper(); var ew = servicesMapper.GetServicesWithPrice(); CategoryMapper categoryMapper = new CategoryMapper(); categoryMapper.GetCategories(); if (Master != null) { ContentPlaceHolder ph = (ContentPlaceHolder)Master.FindControl("MainContent"); servicesList = (global::ServicesList.ServicesList)ph.FindControl("servicesList"); servicesList = (global::ServicesList.ServicesList)ph.FindControl("servicesList"); servicesList.Services = ServicesToServicesDLL(servicesMapper.GetServicesWithPrice()); servicesList.Categories = CategoriesToCategoriesDLL(categoryMapper.GetCategories()); } }