i am creating a dynamic Page Viewer web part from the user control code behind .. something like this:
PageViewerWebPart oWebPart = new PageViewerWebPart();
oWebPart.ContentLink = WebPart.WebPartContentLink.ToString();
Controls.Add(oWebPart);
the problem i am having is Height/Width.... do i need to provide user to set the height and width for the Page Viewer in the Prop window?
oWebPart.Height = "<user input>"
oWebPart.Width = "user input>"
any help how should i deal with this issue?
I try to set the Height/Width of the web part that i have created through:
Appearance>>>Height/Width
but no avail.
custom web part for Page Viewer web part through code-behind but i am unable to set height and width after i edit my custom web part and i select inches and set to 12 but nothing has happen...
Any Insight?