PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

How to call an ASP page?

 
 
MeAgin
Guest
Posts: n/a
 
      13th Feb 2007
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


 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      13th Feb 2007
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" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
MeAgin
Guest
Posts: n/a
 
      13th Feb 2007
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
> > 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
> >
> >

>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      13th Feb 2007
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" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> 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" <(E-Mail Removed)> schreef in bericht
>> news:(E-Mail Removed)...
>> > 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
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
MeAgin
Guest
Posts: n/a
 
      14th Feb 2007
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]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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" <(E-Mail Removed)> schreef in bericht
> news:(E-Mail Removed)...
> > 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]" <(E-Mail Removed)> wrote in message
> > news:(E-Mail Removed)...
> >> 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" <(E-Mail Removed)> schreef in bericht
> >> news:(E-Mail Removed)...
> >> > 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
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
Larry Linson
Guest
Posts: n/a
 
      14th Feb 2007
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
**** IDE'





On Feb 13, 8:50 pm, "MeAgin" <MeAg...@email.com> wrote:
> 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.nl> wrote in messagenews:%(E-Mail Removed)...> 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.com> schreef in bericht
> >news:(E-Mail Removed)...
> > > 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.nl> wrote in message
> > >news:(E-Mail Removed)...
> > >> 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.com> schreef in bericht
> > >>news:(E-Mail Removed)...
> > >> > 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 -



 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      14th Feb 2007
Ignore the LarryLinson guy. He's trolling.

Robin S.
------------------------------------
"MeAgin" <(E-Mail Removed)> wrote in message
news:uY2kFP$(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> 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" <(E-Mail Removed)> schreef in bericht
>> news:(E-Mail Removed)...
>> > 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]" <(E-Mail Removed)> wrote in message
>> > news:(E-Mail Removed)...
>> >> 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" <(E-Mail Removed)> schreef in bericht
>> >> news:(E-Mail Removed)...
>> >> > 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
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      14th Feb 2007
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" <(E-Mail Removed)> schreef in bericht
news:uY2kFP$(E-Mail Removed)...
> 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]" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> 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" <(E-Mail Removed)> schreef in bericht
>> news:(E-Mail Removed)...
>> > 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]" <(E-Mail Removed)> wrote in message
>> > news:(E-Mail Removed)...
>> >> 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" <(E-Mail Removed)> schreef in bericht
>> >> news:(E-Mail Removed)...
>> >> > 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
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A page call B page's methods? Elliot Microsoft ASP .NET 3 21st Apr 2009 02:18 AM
Call a javascript when i call an aspx page with a form html not running on server Fabio Mastria Microsoft ASP .NET 4 28th Jan 2008 09:05 AM
Call in asp.net page. NewDirection Microsoft ASP .NET 3 5th Jun 2006 06:04 PM
Newbie using too many tools! Need to call page from page Jozef Microsoft ASP .NET 1 26th May 2005 12:33 PM
Call to Response.Redirect puts page in frameset, need page to replace frameset... S. Justin Gengo Microsoft ASP .NET 2 8th Jan 2004 05:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:57 PM.