473,473 Members | 1,511 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to call an ASP page?

Hi all,

I want to call a classic ASP page from my vb.net code. How this can be done?
Normally I would create an object from MSXML2.XMLHTTP and then call the Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee
Feb 13 '07 #1
7 6324
Nadee,

Can you describe a little bit more what you want to do with it, mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee


Feb 13 '07 #2
Hi Cor,

I want to download some files from a web server. At the moment our server
system runs on classic ASP and we call an ASP page to download files from
our VFP application as shown below,

cString = "Some info to process"
cDownloadCheckURL = "http://221.68.56.163/WebSErver/Common/Download.asp" +
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText

If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt sode.
Now i want to call the same ASP file to download some files. This if for a
protoype i'm doing in vb.net to mimic our client side.

Thanks
Nadee
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
Nadee,

Can you describe a little bit more what you want to do with it, mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee


Feb 13 '07 #3
Hi,

This is very easy to do.

http://www.vb-tips.com/dbpages.aspx?...d-65cb7582aef3

There is an even simpler one too on our website (one without toolbar)

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi Cor,

I want to download some files from a web server. At the moment our server
system runs on classic ASP and we call an ASP page to download files from
our VFP application as shown below,

cString = "Some info to process"
cDownloadCheckURL = "http://221.68.56.163/WebSErver/Common/Download.asp" +
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText

If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt sode.
Now i want to call the same ASP file to download some files. This if for a
protoype i'm doing in vb.net to mimic our client side.

Thanks
Nadee
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
>Nadee,

Can you describe a little bit more what you want to do with it, mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee




Feb 13 '07 #4
Thanks Cor.
But i can't access these URLs.
Can u please advice? Wat is your web site? A simple one would be ok.

Nadee.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi,

This is very easy to do.

http://www.vb-tips.com/dbpages.aspx?...d-65cb7582aef3
>
There is an even simpler one too on our website (one without toolbar)

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi Cor,

I want to download some files from a web server. At the moment our
server
system runs on classic ASP and we call an ASP page to download files
from
our VFP application as shown below,

cString = "Some info to process"
cDownloadCheckURL = "http://221.68.56.163/WebSErver/Common/Download.asp"
+
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText

If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt sode.
Now i want to call the same ASP file to download some files. This if for
a
protoype i'm doing in vb.net to mimic our client side.

Thanks
Nadee
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
Nadee,

Can you describe a little bit more what you want to do with it, mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can
be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call
the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee





Feb 14 '07 #5
I reccomend putting your ASP page through IIS and ignoring DOTNET; it
is merely a passing fad.. and it's going to go through a 'visual fred'
phase _AGAIN_ this summer with the release of 'yet another piece of
shit IDE'

On Feb 13, 8:50 pm, "MeAgin" <MeAg...@email.comwrote:
Thanks Cor.
But i can't access these URLs.
Can u please advice? Wat is your web site? A simple one would be ok.

Nadee.

"Cor Ligthert [MVP]" <notmyfirstn...@planet.nlwrote in messagenews:%2****************@TK2MSFTNGP06.phx.gb l...Hi,
This is very easy to do.

http://www.vb-tips.com/dbpages.aspx?...b3-a18d-65cb75...


There is an even simpler one too on our website (one without toolbar)
Cor
"MeAgin" <MeAg...@email.comschreef in bericht
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi Cor,
I want to download some files from a web server. At the moment our
server
system runs on classic ASP and we call an ASP page to download files
from
our VFP application as shown below,
cString = "Some info to process"
cDownloadCheckURL = "http://221.68.56.163/WebSErver/Common/Download.asp"
+
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText
If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt sode.
Now i want to call the same ASP file to download some files. This if for
a
protoype i'm doing in vb.net to mimic our client side.
Thanks
Nadee
"Cor Ligthert [MVP]" <notmyfirstn...@planet.nlwrote in message
>news:O7**************@TK2MSFTNGP02.phx.gbl...
>Nadee,
>Can you describe a little bit more what you want to do with it, mostly
>everybody is using this in another way.
>Cor
>"MeAgin" <MeAg...@email.comschreef in bericht
>>news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,
I want to call a classic ASP page from my vb.net code. How this can
be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call
the
Get
method and the ResponseText wiuld have the return value.
Thnaks.
Nadee- Hide quoted text -

- Show quoted text -

Feb 14 '07 #6
Ignore the LarryLinson guy. He's trolling.

Robin S.
------------------------------------
"MeAgin" <Me*****@email.comwrote in message
news:uY**************@TK2MSFTNGP02.phx.gbl...
Thanks Cor.
But i can't access these URLs.
Can u please advice? Wat is your web site? A simple one would be ok.

Nadee.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

This is very easy to do.

http://www.vb-tips.com/dbpages.aspx?...d-65cb7582aef3
>>
There is an even simpler one too on our website (one without toolbar)

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi Cor,

I want to download some files from a web server. At the moment our
server
system runs on classic ASP and we call an ASP page to download files
from
our VFP application as shown below,

cString = "Some info to process"
cDownloadCheckURL =
"http://221.68.56.163/WebSErver/Common/Download.asp"
+
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText

If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt
sode.
Now i want to call the same ASP file to download some files. This if
for
a
protoype i'm doing in vb.net to mimic our client side.

Thanks
Nadee
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
Nadee,

Can you describe a little bit more what you want to do with it,
mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can
be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call
the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee




Feb 14 '07 #7
This is not the one the link is pointed to, this is more simple

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextBox1.Multiline = True
Me.TextBox1.ScrollBars = ScrollBars.Both
'above only for showing the sample
Dim Doc As mshtml.IHTMLDocument2
Doc = New mshtml.HTMLDocumentClass
Dim wbReq As Net.HttpWebRequest = _
DirectCast(Net.WebRequest.Create("http://msdn.microsoft.com/"),
_
Net.HttpWebRequest)
Dim wbResp As Net.HttpWebResponse = _
DirectCast(wbReq.GetResponse(), Net.HttpWebResponse)
Dim wbHCol As Net.WebHeaderCollection = wbResp.Headers
Dim myStream As IO.Stream = wbResp.GetResponseStream()
Dim myreader As New IO.StreamReader(myStream)
Doc.write(myreader.ReadToEnd())
Doc.close()
wbResp.Close()

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:uY**************@TK2MSFTNGP02.phx.gbl...
Thanks Cor.
But i can't access these URLs.
Can u please advice? Wat is your web site? A simple one would be ok.

Nadee.

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Hi,

This is very easy to do.

http://www.vb-tips.com/dbpages.aspx?...d-65cb7582aef3
>>
There is an even simpler one too on our website (one without toolbar)

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ud**************@TK2MSFTNGP05.phx.gbl...
Hi Cor,

I want to download some files from a web server. At the moment our
server
system runs on classic ASP and we call an ASP page to download files
from
our VFP application as shown below,

cString = "Some info to process"
cDownloadCheckURL =
"http://221.68.56.163/WebSErver/Common/Download.asp"
+
cString
oHTTP = CREATEOBJECT("MSXML2.XMLHTTP")
oHTTP.OPEN("GET", cDownloadCheckURL, .F.)
oHTTP.SEND(cString)
cReturn = oHTTP.ResponseText

If everything went fine the cReturn will have the downloaded file as a
binary sting. then we can save this string as a file on the clicnt
sode.
Now i want to call the same ASP file to download some files. This if
for
a
protoype i'm doing in vb.net to mimic our client side.

Thanks
Nadee
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:O7**************@TK2MSFTNGP02.phx.gbl...
Nadee,

Can you describe a little bit more what you want to do with it, mostly
everybody is using this in another way.

Cor

"MeAgin" <Me*****@email.comschreef in bericht
news:ug**************@TK2MSFTNGP04.phx.gbl...
Hi all,

I want to call a classic ASP page from my vb.net code. How this can
be
done?
Normally I would create an object from MSXML2.XMLHTTP and then call
the
Get
method and the ResponseText wiuld have the return value.

Thnaks.
Nadee




Feb 14 '07 #8

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

Similar topics

9
by: Martin Waller | last post by:
Hello, I've been playing with the idea of just how to use an ASP page to provide a remote function call. In an ideal world this would be a web service but how can you do it if restricted to ASP...
2
by: Chris Michael | last post by:
Hello everybody, Newbie here. I've been working on this for the last two days and I can't figure out where this problem is. I think it's something so obvious, but I can't see it! OK, firstly...
0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
4
by: John | last post by:
Hi all, This really is quite an urgent matter. I have a page with multiple, dynamically-loaded user controls and when a user clicks on a button, the whole form is submitted. Now at this stage...
6
by: grist2mill | last post by:
I want to create a standard tool bar that appears on all pages that is a control. The toolbar has a button 'New'. What I wolud like when the user clicks on 'New' depends on the page they are on. I...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
4
by: Paul | last post by:
Hi, I've been struggling with this today, I'm developing a DotNet2.0 website in C# that needs to call a long running data query. Obviously this is a good candidate for an Asynchronous call, so...
11
by: yangsuli | last post by:
i want to creat a link when somebody click the link the php script calls a function,then display itself :) i have tried <a href=<? funtion(); echo=$_server ?>text</a> but it will call the...
6
by: Steve Richter | last post by:
what with the website solution structure not having a namespace, how does the class of one website .aspx page class reference the class of another page in the same website? I have two pages....
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
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,...
0
jinu1996
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...
0
tracyyun
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.