Calling an ASP.NET page from ASP?

T

Toni

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
 
B

Bob Barrows [MVP]

Toni said:
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.
 
T

Toni

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
 
B

Bob Barrows [MVP]

Toni said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top