protected void Button1_Click(object sender, EventArgs e) { Proxy.ServiceClient client = new Proxy.ServiceClient(); var fileName = client.Upload(FileUpload1.FileContent); Session["file"] = fileName; }
protected void Button2_Click(object sender, EventArgs e) { Proxy.ServiceClient client = new Proxy.ServiceClient(); var stream = client.Download(Session["file"].ToString()); StreamReader reader = new StreamReader(stream); Response.Write(reader.ReadToEnd()); }