Share via

how can I copy an aspx page to sharepoint

Zumpano, Giuseppe 0 Reputation points
2026-05-07T13:01:14.1933333+00:00

I am trying to move from exostar aspx to sharepoint aspx. I would like to upload from one system to the others the aspx files.

However, I would like to amend (change hyperlinks) them before uploading.

regards

Giuseppe

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Julie Huynh 1,185 Reputation points Independent Advisor
    2026-05-07T15:00:20.6533333+00:00

    Dear @Zumpano, Giuseppe,

    Good day! Welcome to Microsoft Q&A forum!

    Based on your description, I understand that you are trying to migrate ASPX pages from an external Exostar environment to SharePoint. You want to copy the ASPX content from one system to another, but you also need to modify elements such as hyperlinks before making the pages available in SharePoint.

    Regarding this situation, I’ve seen several users successfully follow the guidance discussed in the Microsoft Tech Community thread below, which explains how to copy or move SharePoint site pages between sites: Copy or move site page from one site to another

    • Create a modern SharePoint page on the target site
    • Copy content (text/images) from the ASPX page into SharePoint web parts
    • Update hyperlinks to the correct SharePoint or external URLs
    • Replace ASPX logic with supported options (web parts, Power Automate, embeds)
    • Review, test, and publish the page

    This approach is recommended because:

    • Fully supported in SharePoint Online
    • Avoids compatibility and security issues
    • Easier to maintain and update over time
    • Aligns with Microsoft’s modern SharePoint architecture

    Kindly let me know when there are updates or if you need further assistance. Any updates you’re able to share would be really helpful. I appreciate your time and look forward to hearing how things are going! 

    Thank you for your time and patience.


    If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in [our documentation] to enable e-mail notifications if you want to receive the related email notification for this thread. 

    0 comments No comments

  2. Q&A Assist
    2026-05-07T13:01:42.6433333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    SharePoint does not support directly uploading and running arbitrary ASPX pages from another system (such as Exostar) the way a classic ASP.NET web site does. Instead, SharePoint pages are stored and managed inside SharePoint sites and their Site Pages / Pages libraries.

    To move content from existing ASPX pages into SharePoint and adjust hyperlinks, use one of these supported approaches:

    1. Recreate the page as a SharePoint page and copy content
      1. In the target SharePoint site, create a new page (modern page) in the Site Pages library.
      2. Open the original ASPX page in a browser, copy the text and images.
      3. Paste the content into the new SharePoint page using the web parts (Text, Image, etc.).
      4. Update hyperlinks directly in the SharePoint page editor to point to the new locations.
      5. Publish the page.
    2. Copy/move existing SharePoint pages between sites (if the source is already SharePoint)
      • If the ASPX pages are already in a SharePoint site (for example, in a Site Pages or Pages library), a SharePoint administrator can use PowerShell to copy or move them between SharePoint sites while also copying associated assets:
        • Use Copy-SPOPersonalSitePage to copy or move pages between:
          • OneDrive for Business page libraries and SharePoint sites
          • SharePoint sites and other SharePoint sites
        • Example (copy a page):
                 Copy-SPOPersonalSitePage \
                   -SourceSite 'https://contoso.sharepoint.com/sites/sourcesite' \
                   -DestinationSite 'https://contoso.sharepoint.com/sites/destsite' \
                   -PageName 'MyPage.aspx'
          
        • To move instead of copy, add -DeleteSourcePage so the source page is deleted after the copy.
      • After the page is copied, open it in the destination SharePoint site and edit the hyperlinks as needed.
      • Only the latest published version of the page is transferred; version history is not preserved.
      • Permissions on the page are reset when moved.
    3. Copy or move other files (non-page content) in SharePoint
      • For files already in SharePoint document libraries (not necessarily pages), use the built-in Copy to or Move to commands:
        1. Select the file(s) in the document library.
        2. Choose Copy to or Move to from the toolbar.
        3. Select the destination library/folder and confirm.
      • This is useful if the ASPX file is being treated as a document rather than a page.

    Because Exostar ASPX pages are standard ASP.NET pages, their server-side code and controls will not run as-is in SharePoint Online. Typically only the static content (HTML, text, images, links) is migrated, and the logic is rebuilt using SharePoint features (web parts, Power Apps, Power Automate, etc.).


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.