Пример #1
0
        protected void BtnAdd_Click(object sender, EventArgs e) //update to make it save to image + validate maybe
        {
            string     attImage = LbImage.Text;
            Attraction att      = new Attraction(TbName.Text, attImage, TbPrice.Text, TbDate.Text, TbDesc.Text, TbLocation.Text, decimal.Parse(TbLat.Text), decimal.Parse(TbLong.Text), DdlInterest.SelectedValue, DdlType.SelectedValue, DdlTran.SelectedValue);

            att.AddAttraction(att);
            Response.Redirect("AdminPageAddAttraction.aspx");
        }