Deploying ASPX on an ASP Page

I have an ASPX based component that I need to include in a simple ASP script. The scenario is that I work in the LMS system (more precisely, the Angel) and I will not create a new nugget within this structure. An angel nugget is pretty much what a portlet is in the Java world.

Now, the specification is nugget. that my starting point should be a file called default.asp. I would like to do the following:

  • read relevant data from an ASP session.
  • transfer data to an aspx component
  • ASPX does the job and displays the results.

My problem is that I cannot start / display my ASPX component without using an iframe, which I want to avoid, as this suppresses the layout / design of my nugget.

Is there a way to do it right or do I need to rewrite my ASP component for this?

Note: the component performs web service requests, etc., and I would like to avoid overwriting this.

+3
source share
1 answer

Why don't you grab the .aspx content from the .asp page using an MSXML object?


url = "http://www.yoururl.com/YourPage.aspx?relevantData=YourRelevantData"

Set xml = Server.CreateObject("Msxml2.SERVERXMLHTTP") xml.Open "GET",url,False xml.send html = xml.ResponseText Set xml = Nothing

Response.Write(html)

+3
source

Source: https://habr.com/ru/post/1736983/


All Articles