i have a custom prop for ContentLink for PageViewerWebPart and the strange thing is that, if i enter www.yahoo.com i get this below error:
The following file(s) have been blocked by the administrator: /SitePages/www.yahoo.com
Troubleshoot issues with Microsoft SharePoint Foundation.
if i enter just http://www.yahoo.com its work as expected
and here is my custom webpart prop:
private string _webPartContentLink = null;
[Personalizable(PersonalizationScope.Shared)]
[WebBrowsable(true)]
[System.ComponentModel.Category("Services")]
[WebDisplayName("Enter WebPart Content Link")]
[WebDescription("Enter WebPart Content Link")]
public string WebPartContentLink
{
get
{
if (_webPartContentLink == null)
{
_webPartContentLink = string.Empty;
}
return _webPartContentLink;
}
set
{
_webPartContentLink = value;
}
}
PageViewerWebPart oWebPart = new PageViewerWebPart();
oWebPart.ContentLink = WebPart.WebPartContentLink.ToString();
Controls.Add(oWebPart);