none
Using ASP script page in publishing site

    Question

  • Hi,

    I am new to using SharePoint Online. I've been able to create a small publishing site that, for testing, has a few uploaded pages (a main page renamed from HTM to ASPX so it would run, a JS script page, a few images).

    The main page needs to run a math formula that already is scripted into a classic ASP page that I created a while ago. My difficulty is that I am not sure how to reference the relative path to run the ASP page script/math formula? I can upload the ASP page to the same folder as the other pages.

    All pages are created in a third-party tool and for the main page to use/connect to the ASP page, it uses a Post Web Data object (sends and gets data) requiring a URL. It would be helpful to preserving data security if I could enter a relative path URL in that main page's Post Web Data object, to the ASP page, so that the maths are run internal to the SharePoint site and do not need to go externally.

    Is there any way to do this? Any help would be appreciated.

    Thank you.

    Monday, October 10, 2016 7:13 PM

Answers

  • Thank you both for these suggestions and observations. I have found a way to build the math calculation into the original web page created by the third party tool. So, no need for an external ASP page to perform the math (statistical) calculation.

    Best Wishes,

    Tuesday, October 11, 2016 11:07 AM

All replies

  • Hi Sara,

    As I understand, SharePoint not provide a easy way to run the asp script page from another aspx page.

    As a workaround, it is necessary to put the math script to a JavaScript file and then we can call the script function from the main page. 

    We can directly reference the JavaScript file like below in the page:

    <script type="text/javascript" src="js filepath"></script>

    Thanks

    Best Regards


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    Tuesday, October 11, 2016 8:54 AM
  • Don't try this.

    You will take longer trying to  bodge the page to work than re-building it properly. What you're describing, with the calculation happening on the server, is not something that MS wants you to try and is not something that will be made easy.

    Tuesday, October 11, 2016 9:00 AM
  • Thank you both for these suggestions and observations. I have found a way to build the math calculation into the original web page created by the third party tool. So, no need for an external ASP page to perform the math (statistical) calculation.

    Best Wishes,

    Tuesday, October 11, 2016 11:07 AM