Establish connection between ASP and SPO site to perform document search in ASP site

angel sheela 21 Reputation points


I have an ASP site where the contents of the ASP site comes from a SharePoint 2010 site. This is done by a job, it copies all the files from SharePoint to the server path.

We have a search in the ASP site, whenever the user searches for any document, the result come from SharePoint and it is displayed in an Iframe of the ASP site, we have written a custom code in SharePoint that gives the required result.

Now we are moving to SPO from SP 2010. Can we use the default search (OSS search) of the SPO and invoke it in the ASP site?

How can we connect ASP and SPO site? Also let me know if there are any other possibilities to invoke SharePoint online search in ASP site and display result in Iframe.

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,148 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,156 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,557 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,761 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 29,041 Reputation points Microsoft Vendor

    Hi @angel sheela ,
    Per my research, you can follow the steps to covert ASP site to sharepoint site.

    Step1: Add a Web Deployment Project to your website solution that will create a single DLL for the website. This step will give us the code-behind DLL and other dependency DLLs for the website.

    Step2: Copy the bin folder items (DLLs) into the SharePoint site, and tweak the web configuration file of the SharePoint site to use the copied DLLs.

    Step3: Open your created SharePoint site in SharePoint Designer and import the web pages from our web application and link it to the appropriate DLLs.

    For more details:

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

    As far as I know, the oss search doesn't work in sharepoint online. You can use the sharepoint online default search by following document

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. 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.

1 additional answer

Sort by: Most helpful
  1. Rohit Mishra 1 Reputation point

    Hi @angel sheela ,

    You can use SPO CSOM and search api to show search results in your application.

    For authentication part, you can use username/ password based authentication (you will have to implement it using SharePointOnlineCredentials class).

    You will have to implement it at your .net application level as you can't use default search page in an iframe.

    Hope this helps.


    0 comments No comments