Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            client = new Cloud_CRUD_Service.OperationsClient();
            var u = client.getUser((int)Session["id"]);

            Label2.Text = u.name;
            create_Table();
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Cloud_CRUD_Service.OperationsClient client;
            client = new Cloud_CRUD_Service.OperationsClient();
            int id = int.Parse(Request.QueryString["id"].ToString());
            int c  = client.Remove_File(id);

            if (c != 1)
            {
                Response.Redirect("Error.aspx");
            }
            Response.Redirect("Files.aspx");
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            client = new Cloud_CRUD_Service.OperationsClient();
            int id = int.Parse(Request.QueryString["id"].ToString());
            //int id = 4;
            var f = client.Read_File(id);

            Response.Buffer = true;
            //Response.Expires = 0;
            Response.ContentType = "application/octet-stream";
            Response.AddHeader("Content-Type", "application/octet-stream");
            //Response.AddHeader("Content-Length", btFile.Length.ToString);
            Response.AddHeader("Content-Disposition", "attachment;filename=" + f.Name + "." + f.Extention);
            Response.Cache.SetCacheability(HttpCacheability.NoCache);
            Response.BinaryWrite(f.d);
            Response.End();
        }
Esempio n. 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     client = new Cloud_CRUD_Service.OperationsClient();
     ValidationSettings.UnobtrusiveValidationMode = UnobtrusiveValidationMode.None;
 }