Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["current_user"] == null)
            {
                Response.Redirect("login.aspx");
            }
            client  = new ServiceReference1.Service1Client();
            client1 = new ServiceReference2.Service1Client();
            string email = Session["current_user"].ToString();
            int    placeid;


            if (Request.QueryString["placeid"] != null)
            {
                placeid = Int32.Parse(Request.QueryString["placeid"]);
            }
            else
            {
                placeid = Int32.Parse(Request.Cookies["pid"].Value);
            }
            passengers = client.getpassengers(email);
            place      = client1.getPlace(placeid);

            nofpassenger = passengers.Length;
            totalamount  = nofpassenger * (Int32.Parse(place.price));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["current_user"] == null)
     {
         Response.Redirect("login.aspx");
     }
     client = new ServiceReference2.Service1Client();
 }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["current_user"] == null)
            {
                Response.Redirect("login.aspx");
            }
            client = new ServiceReference2.Service1Client();

            int id = Int32.Parse(Request.Cookies["pid"].Value);

            dest = client.getPlace(id);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Redirect("login.aspx");
            }
            client = new ServiceReference2.Service1Client();

            //List<Client.ServiceReference2.tplaces = client.getAllPlace();

            if (!Page.IsPostBack)
            {
                Repeater1.DataSource = client.getAllPlace();
                Repeater1.DataBind();
            }
        }
Exemplo n.º 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["admin"] == null)
     {
         Response.Redirect("login.aspx");
     }
     client  = new ServiceReference2.Service1Client();
     tour    = new ServiceReference2.tour();
     placeid = Request.QueryString["placeid"];
     tour    = client.getPlace(int.Parse(placeid));
     if (!Page.IsPostBack)
     {
         name.Value        = tour.name;
         price.Value       = tour.price;
         description.Value = tour.desc;
     }
 }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["current_user"] == null)
            {
                Response.Redirect("login.aspx");
            }
            client = new ServiceReference2.Service1Client();

            //List<Client.ServiceReference2.tplaces = client.getAllPlace();

            if (!IsPostBack)
            {
                string email = Session["current_user"].ToString();
                getFPlace(email);


                Repeater1.DataSource = places;
                Repeater1.DataBind();
                //Label1.Text = client.getFPlace(email).Length.ToString();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     client  = new ServiceReference1.Service1Client();
     client1 = new ServiceReference2.Service1Client();
 }