G
Guest
Hello,
I am trying to locate a tutorial that explains how to handle the downloading
of files via the http protocol within a vb application. I have an old
program I wrote in Macromedia Director and I need to recreate it's
functionality within VB.net.
One of the main components of this project is it's ability to
upload/download file data using the http protocol.
I am very new at VB development and am curious as to the handling of
asynchronous network operations are handled within VB.
Macromedia Director uses a frame based/timeline metaphor for adding code etc
whilst VB.net uses forms. In Director I make my http call in frame 10 like
this:
global gNetID
on exitframe me
gNetID = getNetText (http://myserver.com/mytext.txt)
end
I then have Director loop in frame 12 single frame testing the condition of
gNetID until it returns either an error message or the text. It looks
something like this:
global gNetID
on exitframe me
if (netDone(gNetID) = TRUE) and (netError(gNetID) = "OK") then
member("Display Text").text = netTextResult()
go to frame "display results"
else
go to the frame
end if
end
I assume that this type of transaction can be accomplished in VB.net I am
just at a loss for finding an example to study.
Any tutorials out there for this type of thing? I've checked google,
codehound, vbaccelerator, etc...looking for "downloading file techniques"
and nothing.
Many thanks in advance,
devin M. arnold
I am trying to locate a tutorial that explains how to handle the downloading
of files via the http protocol within a vb application. I have an old
program I wrote in Macromedia Director and I need to recreate it's
functionality within VB.net.
One of the main components of this project is it's ability to
upload/download file data using the http protocol.
I am very new at VB development and am curious as to the handling of
asynchronous network operations are handled within VB.
Macromedia Director uses a frame based/timeline metaphor for adding code etc
whilst VB.net uses forms. In Director I make my http call in frame 10 like
this:
global gNetID
on exitframe me
gNetID = getNetText (http://myserver.com/mytext.txt)
end
I then have Director loop in frame 12 single frame testing the condition of
gNetID until it returns either an error message or the text. It looks
something like this:
global gNetID
on exitframe me
if (netDone(gNetID) = TRUE) and (netError(gNetID) = "OK") then
member("Display Text").text = netTextResult()
go to frame "display results"
else
go to the frame
end if
end
I assume that this type of transaction can be accomplished in VB.net I am
just at a loss for finding an example to study.
Any tutorials out there for this type of thing? I've checked google,
codehound, vbaccelerator, etc...looking for "downloading file techniques"
and nothing.
Many thanks in advance,
devin M. arnold