protected void Btn_cardBtn_Click(object sender, EventArgs e)
        {
            string  sessionId = (string)Session["myValue"];
            int     cartId    = Int32.Parse(Request.QueryString["cartId"]);
            Address address   = new Address();

            address.City      = Request.QueryString["t"];
            address.Street    = Request.QueryString["s"];
            address.House     = Int32.Parse(Request.QueryString["h"]);
            address.Apartment = Int32.Parse(Request.QueryString["f"]);
            address.Comment   = Request.QueryString["c"];

            CreditCard creditCard = new CreditCard();

            creditCard.CardNumber      = TxtBox_cardNumber.Text;
            creditCard.CardholdersName = TxtBox_cardHolder.Text;
            creditCard.ValidityMM      = Int32.Parse(TxtBox_cardMonth.Text);
            creditCard.ValidityYY      = Int32.Parse(TxtBox_cardYear.Text);
            creditCard.CVC             = Int32.Parse(TxtBox_cardCVC.Text);

            server = new AgregatorServerSoapClient();
            string date = server.CreateOrder(sessionId, cartId, address, Double.Parse(cost), creditCard);

            Uri baseurl = new Uri("http://localhost/CollOfDishClient/");
            Uri newurl  = new Uri(baseurl, "(S(" + sessionId + "))/Delivery?date=" + date);

            Response.Redirect(newurl.ToString());
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            sessionId = (string)Session["myValue"];
            server    = new AgregatorServerSoapClient();
            //получть имя клиента
            User user = new User();

            user                = server.GetUserInfo(sessionId);
            Lbl_usrName.Text    = user.UserFirstName + " " + user.UserSecondName;
            Lbl_usrName.Visible = true;
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            server = new AgregatorServerSoapClient();
            string sessionId = (string)Session["myValue"];
            string dishName  = Request.QueryString["dish"];
            int    servings  = Int32.Parse(Request.QueryString["servings"]);

            Cart[] carts = server.СartsSearch(sessionId, dishName, servings);
            Lbl_dishName.Text = "Мы подобрали наборы продуктов по вашему запросу:";

            Create_Table_Cars(carts.Length, 3, carts);
            Create_Radiobutton_List(carts);
        }
        protected void Btn_registration_Click(object sender, EventArgs e)
        {
            string usrName    = TxtBox_usrName.Text;
            string usrScdName = TxtBox_usrScdName.Text;
            string usrLogin   = TxtBox_usrLogin.Text;
            string pass       = TxtBox_pass2.Text;
            string sessionId  = (string)Session["myValue"];

            server = new AgregatorServerSoapClient();
            int result = server.UserRegistration(sessionId, usrName, usrScdName, pass, usrLogin);

            if (result == 200)
            {
                Uri baseurl = new Uri("http://localhost/CollOfDishClient/");
                Uri newurl  = new Uri(baseurl, "(S(" + sessionId + "))/Default");
                Response.Redirect(newurl.ToString());
            }
            else
            {
                Lbl_warning.Text    = "Зарегистрироваться не удалось";
                Lbl_warning.Visible = true;
            }
        }