i have created a web-part that user will define the url to render and after user insert the web part on the page it did not renders, user have to edit and enter the url and click apply or ok button in the prop.

1 Answer
1

To get the page viewer webpart to display in your webpart, just instantiate a new instance of the PageViewerWebPart object, set the properties with the value from the webpart property, and add it to the Controls for the webpart.