PC Review


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

How to call asp page from ASPNET

 
 
abcd
Guest
Posts: n/a
 
      4th Aug 2005
is there anyway I can call ASP page from ASPNET page. How should I
call...whats the syntax...or code sample

thanks


 
Reply With Quote
 
 
 
 
Curt_C [MVP]
Guest
Posts: n/a
 
      4th Aug 2005
abcd wrote:
> is there anyway I can call ASP page from ASPNET page. How should I
> call...whats the syntax...or code sample
>
> thanks
>
>


Call it for what purpose? Are you trying to parse it in, in the
background? Redirect to it? etc?

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
 
Reply With Quote
 
abcd
Guest
Posts: n/a
 
      4th Aug 2005
I have a COM component which is instantiated in ASP page and that does a job
for me....ASP page returns me the list of some values....as that ASP page is
already written I dont want to convert it into aspx page....

the values I get from ASP page I use it in ASPX page in list box....




Curt_C [MVP] wrote:
> abcd wrote:
>> is there anyway I can call ASP page from ASPNET page. How should I
>> call...whats the syntax...or code sample
>>
>> thanks
>>
>>

>
> Call it for what purpose? Are you trying to parse it in, in the
> background? Redirect to it? etc?



 
Reply With Quote
 
Curt_C [MVP]
Guest
Posts: n/a
 
      4th Aug 2005
abcd wrote:
> I have a COM component which is instantiated in ASP page and that does a job
> for me....ASP page returns me the list of some values....as that ASP page is
> already written I dont want to convert it into aspx page....
>
> the values I get from ASP page I use it in ASPX page in list box....
>


So you want to Parse the Remote Page... that's your search, I think you
will find a number of ways to do this out there.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
 
Reply With Quote
 
abcd
Guest
Posts: n/a
 
      4th Aug 2005
yes...

do you know any quick solution
Curt_C [MVP] wrote:
> abcd wrote:
>> I have a COM component which is instantiated in ASP page and that
>> does a job for me....ASP page returns me the list of some
>> values....as that ASP page is already written I dont want to convert
>> it into aspx page.... the values I get from ASP page I use it in ASPX
>> page in list box....
>>

>
> So you want to Parse the Remote Page... that's your search, I think
> you will find a number of ways to do this out there.



 
Reply With Quote
 
Curt_C [MVP]
Guest
Posts: n/a
 
      4th Aug 2005
abcd wrote:
> yes...
>
> do you know any quick solution
> Curt_C [MVP] wrote:
>
>>abcd wrote:
>>
>>>I have a COM component which is instantiated in ASP page and that
>>>does a job for me....ASP page returns me the list of some
>>>values....as that ASP page is already written I dont want to convert
>>>it into aspx page.... the values I get from ASP page I use it in ASPX
>>>page in list box....
>>>

>>
>>So you want to Parse the Remote Page... that's your search, I think
>>you will find a number of ways to do this out there.

>
>
>


With ASP.NET I don't, sorry. I know I've seen it posted here before, and
would be willing to bet that Google would get you a good start.
The problem isnt calling the remote page, its going to be getting the
Text out of the html generated page... The whole page will be read in
as a large string, which you will have to break apart.
In the end I'd be willing to bet you will be better off calling that
same COM component from your ASP.NET page instead....

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
 
Reply With Quote
 
abcd
Guest
Posts: n/a
 
      4th Aug 2005
my current solution is I am using VB component which is using Internet
Transport Control to reach to that asp page that works great....and I call
that coponent from aspx page

my code looks like

Set obj = CreateObject("InetCtls.Inet")
output = obj.OpenURL(strURL, icString)

this worlks good....but we have deployment issues...we dont know whether
this control exsits on every OS....



Curt_C [MVP] wrote:
> abcd wrote:
>> yes...
>>
>> do you know any quick solution
>> Curt_C [MVP] wrote:
>>
>>> abcd wrote:
>>>
>>>> I have a COM component which is instantiated in ASP page and that
>>>> does a job for me....ASP page returns me the list of some
>>>> values....as that ASP page is already written I dont want to
>>>> convert it into aspx page.... the values I get from ASP page I use
>>>> it in ASPX page in list box....
>>>>
>>>
>>> So you want to Parse the Remote Page... that's your search, I think
>>> you will find a number of ways to do this out there.

>>
>>
>>

>
> With ASP.NET I don't, sorry. I know I've seen it posted here before,
> and would be willing to bet that Google would get you a good start.
> The problem isnt calling the remote page, its going to be getting the
> Text out of the html generated page... The whole page will be read in
> as a large string, which you will have to break apart.
> In the end I'd be willing to bet you will be better off calling that
> same COM component from your ASP.NET page instead....



 
Reply With Quote
 
Mark Rae
Guest
Posts: n/a
 
      4th Aug 2005
"abcd" <(E-Mail Removed)> wrote in message
news:%231EGX$(E-Mail Removed)...

> is there anyway I can call ASP page from ASPNET page. How should I
> call...whats the syntax...or code sample


What do you mean by "call" exactly? If you mean that an ASP.NET page
contains a hyperlink which points to an ASP page, or that its code-behind
redirects or transfers to an ASP page, then you do it just as if it were an
ASP.NET page.


 
Reply With Quote
 
abcd
Guest
Posts: n/a
 
      4th Aug 2005
I mean my codebehind will run/execute (or whatever mechanism is) that asp
page and return some outout for me (asp page is using response.wrire) ....

what is that mecnhamism ?? so that I can get out put from asp page into my
aspx page


Mark Rae wrote:
> "abcd" <(E-Mail Removed)> wrote in message
> news:%231EGX$(E-Mail Removed)...
>
>> is there anyway I can call ASP page from ASPNET page. How should I
>> call...whats the syntax...or code sample

>
> What do you mean by "call" exactly? If you mean that an ASP.NET page
> contains a hyperlink which points to an ASP page, or that its
> code-behind redirects or transfers to an ASP page, then you do it
> just as if it were an ASP.NET page.



 
Reply With Quote
 
WJ
Guest
Posts: n/a
 
      4th Aug 2005

"abcd"

Can you direct the ASP page to return you XML so that your ASP.Net page can
read in into your list ?

John


 
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
aspnet page javascript Word/Excel David C Microsoft ASP .NET 0 8th Apr 2008 10:24 PM
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
ASPNET GridView and page question Jason Huang Microsoft ASP .NET 3 12th Jul 2007 08:02 AM
Use impersonation in ASPNET page to copy files =?Utf-8?B?RGFuaWVsIFQ=?= Microsoft ASP .NET 1 2nd Mar 2006 03:03 PM
how can I get url of page ASPNET C# Dariusz Tomon Microsoft ASP .NET 6 7th Feb 2006 06:40 PM


Features
 

Advertising
 

Newsgroups
 


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