Calling an ASP.NET page from ASP?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Toni

    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


  • Bob Barrows [MVP]

    #2
    Re: Calling an ASP.NET page from ASP?

    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"


    Comment

    • Toni

      #3
      Re: Calling an ASP.NET page from ASP?

      "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





      Comment

      • Bob Barrows [MVP]

        #4
        Re: Calling an ASP.NET page from ASP?

        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"


        Comment

        • Toni

          #5
          Re: Calling an ASP.NET page from ASP?

          Got it - thanks!


          Comment

          Working...