Hi,
how do I develop the following 'simple' program using ASP.NET webforms :
a client has a text-file (aaa.txt) that has to be manipulated by code
located on the server, the server would then manipulate the content and send
the manipulated content back to the client, where the client saves it to
(bbb.txt)
What scenario would be best :
1) 1st scenario ("pull model") : the server using an url (given by the
client) that specifies the location of the file on the client and the server
would then download the file, manipulate it and send it back. but how ??
what is the exact code to do this ? what classes do I use ? ...
or
2) 2nd scenario : the client sending the file to the server, the server
manipulating the file and sending it back to the client.
again how ??
how do I 'send' a file to the other-side ? the client code may not be .NET
code I guess , right ? so how do I send a file to the other side ? in
Javascript then ? and how ?
an how do I save a file on the client in JavaScript ?
lots of questions I know.
any help greatly appreciated !!!
thnx
Chris 1 2706
2) is much better as there is no need to have a special configuration client
side wihtout talking about security.
You can upload a file awith the htmlInputFile control (that creates an Input
type=file HTML tag) and the download is done using : http://support.microsoft.com/default.aspx?id=260519
Note that for security reasons, the user will specify what is the file to
upload (using the HTML control) and the article above will allow the user to
specify where the file should be stored...
Patrice
--
"Chris" <ch********@pan dora.be> a écrit dans le message de
news:6j******** *************** @phobos.telenet-ops.be... Hi,
how do I develop the following 'simple' program using ASP.NET webforms :
a client has a text-file (aaa.txt) that has to be manipulated by code located on the server, the server would then manipulate the content and
send the manipulated content back to the client, where the client saves it to (bbb.txt)
What scenario would be best :
1) 1st scenario ("pull model") : the server using an url (given by the client) that specifies the location of the file on the client and the
server would then download the file, manipulate it and send it back. but how ?? what is the exact code to do this ? what classes do I use ? ...
or
2) 2nd scenario : the client sending the file to the server, the server manipulating the file and sending it back to the client. again how ?? how do I 'send' a file to the other-side ? the client code may not be .NET code I guess , right ? so how do I send a file to the other side ? in Javascript then ? and how ? an how do I save a file on the client in JavaScript ?
lots of questions I know.
any help greatly appreciated !!! thnx Chris This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob Bedford |
last post by:
I've to give the client ID to my customers. As this number will be used in a
third part app, and I only rely on this number for checking the user's
existence (I can't change the third part app), I'd like not to give the flat
number, but an "encoded"
number that let me check if the code is valid.
Let's say client ID = 723
I'd like to have a code quite simple to provide by phone, without any
strange things like @^~... for simple users...
|
by: tmp |
last post by:
I want to have a 'help' popup on seveal key words on a page.
I don't want to use a button...
But would like to do it like a link... so the text on the page is the link
to the Popup Window.
Can anyone provide me with a simple example of a JavaScript to do this.
thanks in advance.
|
by: d.p. |
last post by:
Hi all,
I'm using MS Access 2003.
Bare with me on this description....here's the situation: Imagine insurance,
and working out premiums for different insured properties. The rates for
calculating premiums are dependant on the country in which the client is in.
Therefore, we have a Country table, with its list of rates, a client table
and then the property table. Getting this is great, works fine, easy!
Problem is, now I need to work out a...
|
by: jm |
last post by:
Easy probably, please read on. I know some of you have commented
already about some of my socket question. I appreciate that.
I have a Form1:
static void Main()
{
Application.Run(new Form1());
clsListening.AsynchronousSocketListener.StartListening();
|
by: Mark Ogilvie |
last post by:
Hi
I'm new to C#, and have a problem which I'm sure is simple.
I have the following 3 lines of code:
string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\tw97_data.mdb;Persist Security Info=False";
string SelectPartiesString = "SELECT parties.,
clients., clients.Name FROM clients LEFT JOIN parties ON
| |
by: Billy Bob |
last post by:
Hi, does anyone know of a simple ftp client class, should be able to
connect and upload/delete files. C#
*** Sent via Developersdex http://www.developersdex.com ***
|
by: samsonfr |
last post by:
Hello,
I have read KB 814472 and the article "How To: Remove Dependency on
_vcclrit.h"
(http://msdn2.microsoft.com/en-us/library/ms173267(en-us,vs.80).aspx)
which confirmed that VS.NET 2005 don't need the "/noentry + MSVCRT.LIB
+ __DllMainCRTStartup@12 + __crt_dll_initialize, and
__crt_dll_terminate" fix anymore ...
I used the article "How to: Compile MFC and ATL Code with /clr"
|
by: Rafael Veronezi |
last post by:
I have a simple doubt about the Response.Write method...
Follows... I have a page that do some processing before show up, it could
take something like 10 or 15 seconds... But it's not the network reply time,
but the page processing time...
So, as everybody knows, Response.Write outputs to the page, and, if you use
that in your page load for example, it will show up on the top of the page,
when it's fully rendered and sent to client...
My...
|
by: Shawnk |
last post by:
This post is intended to verify that true value semantics DO NOT EXIST for the
Enum class (relative to boolean operations).
If this is true then (thus and therefore) you can not design state machines in
C# where the machine can use the enumerated 'state' to execute (thus the term
'machine' as in 'state machine') the machine operations as this requires
boolean operations to be performed on the state.
.....
|
by: Greg Corradini |
last post by:
Hello all,
I'm having trouble inserting an SQL selection into a new MS Access table. I
get a parameter error on my insert statement when I try this (see below for
code and error msg). I'm not sure if 'insert' or 'update' is the route I
should be taking.
CODE:
#Import Pythond Standard Library Modules
import win32com.client, sys, os, string, copy, glob
import mx.ODBC.Windows as odbc
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |