How to add a custom web part to modern site page in sharePoint 2019

Imran Ali Bajwa 1 Reputation point
2020-08-11T13:01:03.797+00:00

I have developed a custom visual web part which i wants to add to modern site page in SharePoint 2019 kindly give me the solution.
Thank You.

Microsoft 365 and Office SharePoint For business Windows
{count} votes

2 answers

Sort by: Most helpful
  1. Anupam Shrivastava 176 Reputation points
    2020-08-11T13:42:29.663+00:00

    Simply put, In Modern pages you can't add classic web parts. You can create a web part page to add that web part.

    0 comments No comments

  2. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2020-08-12T06:47:47.29+00:00

    You could build and deploy client-side web part (SPFx) on the SharePoint modern page.

    Here’re some references for you:

    Deploy your client-side web part to a SharePoint page
    Build and deploy the client-side web part(spfx) in SharePoint

    0 comments No comments

Your answer

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