Connecting Tech Pros Worldwide Help | Site Map

Calling an ASP.NET page from ASP?

  #1  
Old August 16th, 2008, 06:25 PM
Toni
Guest
 
Posts: n/a
Is there a recommended way for a .ASP page to call a .ASPX page? I've got a function in
an ASPX page that I need to call from an ASP page. The web site is quite busy, so I'd be
happy to find the most EFFICIENT way to do this?

Right now, I'm looking at using XMLHTTP to call the ASPX page. I'm confident that this
will work, and will return the value I want - but I'm curious if anyone feels that there
is a more efficient way to do this?

Thanks lots!!!

Toni


  #2  
Old August 16th, 2008, 07:25 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a

re: Calling an ASP.NET page from ASP?


Toni wrote:
Quote:
Is there a recommended way for a .ASP page to call a .ASPX page? I've
got a function in an ASPX page that I need to call from an ASP page.
The web site is quite busy, so I'd be happy to find the most
EFFICIENT way to do this?
>
Right now, I'm looking at using XMLHTTP to call the ASPX page. I'm
confident that this will work, and will return the value I want - but
I'm curious if anyone feels that there is a more efficient way to do
this?
>
No, that would be the only way. On the server you would use ServerXMLHTTP,
not XMLHTTP.

You might consider putting that function into a web service, but that's out
of scope of this group.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #3  
Old August 16th, 2008, 08:55 PM
Toni
Guest
 
Posts: n/a

re: Calling an ASP.NET page from ASP?


"Bob Barrows [MVP]" wrote...
Quote:
Toni wrote:
Quote:
Is there a recommended way for a .ASP page to call a .ASPX page? I've
got a function in an ASPX page that I need to call from an ASP page.
The web site is quite busy, so I'd be happy to find the most
EFFICIENT way to do this?

Right now, I'm looking at using XMLHTTP to call the ASPX page. I'm
confident that this will work, and will return the value I want - but
I'm curious if anyone feels that there is a more efficient way to do
this?
No, that would be the only way. On the server you would use ServerXMLHTTP,
not XMLHTTP.
>
You might consider putting that function into a web service, but that's out
of scope of this group.
Bob, Thanks!

Sorry, I'm not familiar with the term "web service" and Google gives me too much
nonuseful info on this...

Just so I know where to start looking - when you refer to putting the function into a
web service, are you referning to the function in my ASPX page, OR, an ASP web service
that calls the ASPX page? I'm not asking to go outside the scope of this group, just
give me a hint so I can get started?


Toni





  #4  
Old August 16th, 2008, 09:45 PM
Bob Barrows [MVP]
Guest
 
Posts: n/a

re: Calling an ASP.NET page from ASP?


Toni wrote:
Quote:
"Bob Barrows [MVP]" wrote...
Quote:
>Toni wrote:
Quote:
>>Is there a recommended way for a .ASP page to call a .ASPX page?
>>I've
>>got a function in an ASPX page that I need to call from an ASP page.
>>The web site is quite busy, so I'd be happy to find the most
>>EFFICIENT way to do this?
>>>
>>Right now, I'm looking at using XMLHTTP to call the ASPX page. I'm
>>confident that this will work, and will return the value I want -
>>but
>>I'm curious if anyone feels that there is a more efficient way to do
>>this?
>>>
>No, that would be the only way. On the server you would use
>ServerXMLHTTP,
>not XMLHTTP.
>>
>You might consider putting that function into a web service, but
>that's out
>of scope of this group.
>
Bob, Thanks!
>
Sorry, I'm not familiar with the term "web service" and Google gives
me too much nonuseful info on this...
>
Just so I know where to start looking - when you refer to putting the
function into a web service, are you referning to the function in my
ASPX page, OR, an ASP web service that calls the ASPX page? I'm not
asking to go outside the scope of this group, just give me a hint so
I can get started?
>
No, I'm talking about taking the function completely out of the aspx page
and putting it into an asmx page. That way both your aspx and asp pages can
call it. Do a google for "consuming web service from classic asp" for some
info.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


  #5  
Old August 16th, 2008, 10:25 PM
Toni
Guest
 
Posts: n/a

re: Calling an ASP.NET page from ASP?


Got it - thanks!


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing from an ASP.NET page Brett answers 18 July 21st, 2008 03:15 AM
Query regarding control names on an asp.net page jaffar.kazi@gmail.com answers 2 August 28th, 2006 12:55 PM
Post process an ASP.NET page Yourself answers 4 March 5th, 2006 09:55 PM
Differences between running in VS and calling an ASP.Net page froma browser Peter Bradley answers 2 November 17th, 2005 06:56 PM