protected void DropDownListMaterials_SelectedIndexChanged(object sender, EventArgs e)
        {
            EntityDataSourceMaterials.CommandParameters["RentalType"].DefaultValue = ComboBoxMaterialType.SelectedValue;
            ComboBoxMaterialType.DataBind();
            ComboBoxMaterials.DataBind();

            // Check if we can enable the URLPopUpControlAlternativeMaterials
            CheckAlternativeMaterialsSettings();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                EntityDataSourceMaterials.CommandParameters["StartDate"].DefaultValue     = Common.ReturnEntitySQLDateTimeString(Common.CurrentClientDateTime(Session));
                EntityDataSourceMaterials.CommandParameters["EndDate"].DefaultValue       = Common.ReturnEntitySQLDateTimeString(Common.CurrentClientDateTime(Session));
                EntityDataSourceMaterials.CommandParameters["BorderEndDate"].DefaultValue = Common.ReturnEntitySQLDateTimeString(new DateTime(2099, 12, 31));
                EntityDataSourceMaterials.CommandParameters["LocationId"].DefaultValue    = LocationID.ToString();

                SaveOrderLines();

                ComboBoxMaterialType.DataBind();
                DropDownListMaterials_SelectedIndexChanged(null, null);
            }

            XmlDataSourceOrderLines.Data = LabelOrderLines.Text;
        }
 protected void URLPopUpControlRentMaterialTypes_PopupClosed(object sender, EventArgs e)
 {
     ComboBoxMaterialType.DataBind();
 }