473,473 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Aug 16 '08 #1
4 3571
Toni wrote:
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"
Aug 16 '08 #2
"Bob Barrows [MVP]" wrote...
Toni wrote:
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

Aug 16 '08 #3
Toni wrote:
"Bob Barrows [MVP]" wrote...
>Toni wrote:
>>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"
Aug 16 '08 #4
Got it - thanks!
Aug 16 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Earl | last post by:
If calling an exe that accesses a database from an ASP page, does the Provider string to connect to the database from inside the exe need to have the user as being "IUSR..." or something since it...
0
by: Mike Collins | last post by:
I apologize for using this newsgroup for what seems like a VB6 question, but I did not see a newsgroup for VB6. I also think I may not have the C# code setup correctly for calling from VB6. If...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
2
by: Harold | last post by:
I have page A with form field and a button and when button is clicked it opens page B in another window. Page B has a treeview control and that is all. When something is selected I want the page...
1
by: desmcc | last post by:
Hi, I am launching a modal dialog through the usual javascript (window.showmodaldialog). When the modal dialog is complete (ie user selects OK), the calling page then refreshes itself by setting...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
0
by: jobs | last post by:
I have a page where users select from a bunch of gridviews, setting session variables and then hit an a New or Edit button which redirects them to a formview in edit or insert mode. While in...
47
by: mukeshrasm | last post by:
Hi I am calling two pages using Ajax Get_Pages.php and Get_Content.php from combo box. Both pages are displayed based on selection from combo box. Main problem is that it is not showing the...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.