Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 16th, 2008, 06:25 PM
Toni
Guest
 
Posts: n/a
Default Calling an ASP.NET page from ASP?

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
Default 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
Default 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
Default 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
Default Re: Calling an ASP.NET page from ASP?

Got it - thanks!


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles