Why my usercontrol's page is null

Royal Ding 1 Reputation point
2020-12-16T10:50:34.023+00:00

I developed a usercontrol as a webpart for sharepoint2013,when i user page.loadcontrol(ascx_path) in CreateChildControls,and i get the error :page is null,why?

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,573 questions
{count} votes