473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

simple client-server program ??

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


Nov 16 '05 #1
1 2682
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********@pandora.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

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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),...
1
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. ...
4
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...
1
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...
1
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...
3
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 ***
0
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...
1
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...
4
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...
0
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.