473,804 Members | 3,909 Online
Bytes | Software Development & Data Engineering Community
+ 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 3580
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
ServerXMLHTT P,
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
2220
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 is an anonymous Internet user accessing the ASP page? Any help/advice would be appreciated about potential problems/concerns when calling an exe from an ASP and then subsequently accessing a database from within that exe. Is there a problem...
0
2582
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 anyone can please help, I would greatly appreciate it. I have a C# DLL, code below that I am trying to call from a VB6 program. I read an article that said to run RegAsm.exe from the .Net SDK and this would enable you to reference the C# DLL from...
5
3446
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 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
2
2214
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 B item to pouplate a form field on page A. Can this be done and how?
1
1949
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 the location.href of the window to be itself (ie the modal dialog changes a label on the calling page ). I can see that this causes the page load code of the calling page to execute in the code behind page. I can also see clearly that this updates...
3
9106
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. If the web service is taking a long time to complete, the aspx page returns a ‘The operation has timed-out.’ Message to the web browser after 100 seconds. I’ve added: <httpRuntime executionTimeout="300" /> to the web.config files
3
3583
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 and then do a refresh of the calling form. Any ideas on how to get a reference to the calling form? I tried window.parent.location.reload() , but it doesn't work. Thanks a lot.
0
1435
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 that formview page they might do a bunch of postbacks, so the back button might not always have the desired affect of taking them back to the calling page. problem #1, a normal back, will only take them to the page from the prior postback, which...
47
3300
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 editor which is called on the Get_Content.php. in Main Page. I have included the js files in the head section. all the files are on the same directory.
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10575
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10330
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10076
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9144
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7616
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3816
muto222
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.