Exemplo n.º 1
0
        protected void Page_Load()
        {
            if (!IsPostBack)
            {
                //DataSet ds = new DataSet();
                //ds.ReadXml(Server.MapPath("~/App_Data/LunchBox.xml"));
                BoxList.DataSource       = Enum.GetNames(typeof(BoxTypes));
                BoxListOrders.DataSource = Enum.GetNames(typeof(BoxTypes));
                //GridView_lunch.DataSource = ds;

                BoxList.DataBind();
                BoxListOrders.DataBind();
                //GridView_lunch.DataBind();

                Numdays.Items.AddRange(Enumerable.Range(1, 100).Select(e => new ListItem(e.ToString())).ToArray());
                CalculatePrice(null, EventArgs.Empty);
            }
        }