SOLVED

Developing custom web part on Sharepoint 2019

Copper Contributor

Hello everyone,

 

I need to develop custom web parts that read data from SQL and Oracle databases.

Kindly advise what is the best practice to execute the above on SharePoint 2019.

 

Many thanks in advance,

7 Replies
Hi,
Since it is SharePoint On-Prem, you will have full control over your server, so you can develop the feature as a web part or application page. You can use the default connection method as we use in .Net by having the connection string in web.config. Let me know whether you are looking for some other things.

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Hi @Sudharsan K,

 

Many thanks for your reply.

 

Any advise on how to deploy/install it on my site?

I am used to create the web part as an ascx file using c# that I copy in the Layouts/ User Controls folder and also install the related dll file in the GAC.

 

Best regards,

Hi,
You dont have to do all these manually, follow the below link for step by step process
https://www.sharepointsky.com/sharepoint-2016-visual-web-part-using-visual-studio/#Create_visual_web...

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Hi @Sudharsan K ,

 

Great!

One last question: spfx platform or SharePoint app can not be used in my case because I mean .NET to connect to my SQL/Oracle databases, right?

 

Many thanks for your prompt support,

best response confirmed by NewUser2020 (Copper Contributor)
Solution
Hi,
You can use SPFx or SharePoint app but both are client side coding, to access the DB, there has to be a API which i think its over kill for your project. If you think that there is an API or web service that can return the data from DB then you can use SPFx or SharePoint App.

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

Hi,

 

All is clear now :)

 

Many thanks,

Hi Sudharsan,
I have a query... Need to consume data from SOAP WSDL webservice (from SAP system) and show it in SharePoint 2019 OnPremise site. Any suggestion/reference material please? Thanks in advance!
1 best response

Accepted Solutions
best response confirmed by NewUser2020 (Copper Contributor)
Solution
Hi,
You can use SPFx or SharePoint app but both are client side coding, to access the DB, there has to be a API which i think its over kill for your project. If you think that there is an API or web service that can return the data from DB then you can use SPFx or SharePoint App.

Hope it helps, please like it or mark it as a solution if it resolves ur clarification or issue
-Sudharsan K...

View solution in original post