Example #1
0
        protected void btnAlquilar_Click(object sender, EventArgs e)
        {
            string id_usuario = Request.QueryString["idu"];
            string id_coche   = Request.QueryString["idc"];

            ws.WSAlquilarCoche(Convert.ToInt32(id_coche), Convert.ToInt32(id_usuario), tbFAlquiler.Text, tbFFin.Text);

            lblInfo.Text = "Has alquilado el coche con exito!";
            Thread.Sleep(1500);
            Response.Redirect("home.aspx?idu=" + id_usuario);
        }