transfering data over the web

SenorPr0n

Newcomer
Joined
Sep 5, 2003
Messages
12
Location
New Jersey, USA
I would like to write a program in vb.net that recieves data through the web and stores it in an excel file. I figured out how to store data in excel files, but I don't know how to transfer data over the internet. I would somehow script a form that you would type data in and have sent to the server. A program that would be programmed in VB.net would be constantly running and would recieve the data and store it in the excel file. I have absolutely no idea how to do this, and I am completely open to suggestions.
 
a 'web application' is just a web page.

in visual studio, just start a new 'web application' project.

you can put a text box and a button on the web form just as you would with a windows application.

then just assign the logic to write the text in the textbox to the excell document on the button click.

after that, you are done. just make sure the web server is accessable from outside your network.
 
I need to find a way to send the data (not the file, just individual strings of data) over the internet and have it recieved by a server listening on an open port. I'm not sure if I can use socket programming for that, but if you know how I can send data like that, or know where I can find a tutorial, I would be very grateful.

By the way, when I create a web app, what should I choose for the web location? Is there something in particular that I have to do to make the web app available to anybody on the internet?
 
i don't know enough about sockets to talk about that, .. but if you have IIS running on the computer that you need the data sent to, then a web app should be fine.

usually the default web directory for IIS is something like c:\Inetpub\wwwroot\<my web app project>
 
You have many options. One that I think is worth exploring for you is to script an ftp file transfer. It is likely that you have an FTP client on your box, try opening and DOS window and typing FTP. Also, rather than using RAW sockets, you could embed use FTP or HTTP protocol directly from VB.NET.
 
Senor, another option is to use sockets directly. The advantage of using ftp or http as the transport is you don't have to create you own little protocol. A good example for source code is chat code samples. Another option would be an automated e-mail (transport over e-mail). If it is possible to discuss the nature of the data that might help. Size, frequency, are both sides needing to be automated (sending and receipt)?
 
Back
Top