Tag Info

Hot answers tagged

3

ActiveX components (which is what you get rendering a network drive) is always on top of HTML, z-index or not. You cannot do anything about that in Internet Explorer (except having a script that temporarily hides the ActiveX while you're activating your menu).


2

The issue is that SharePoint 2010 is on .NET 3.5 (the .NET 2.0 stack). Which means the SharePoint web application does not in anyway support .NET 4. You would need to run that .NET page in a different web application with a different application pool. (You can create the application under the same IIS site, however you MUST use a different application ...


2

The obvious answer is "with JavaScript", e.g. jQuery. You may also be able to override the page viewer web part class with code. However why would you need to do this? This error will only show, as the message states, for browsers prior to Internet Explorer 5. The minimum requirements for SharePoint are above that.


1

From comment: PageViewerWebPart oWebPart = new PageViewerWebPart(); oWebPart.ContentLink = "mindtree.com"; this.Controls.Add(oWebPart);


1

If the page in the page viewer web part is really another SharePoint page, I don't think a PVWP is the right solution here. If we're talking about event details, you'd be better off adding two list view web parts to the page... the first showing the event list/title/etc, and the second showing the event details. Link the web parts together so that a user can ...


1

The Page Viewer webpart actually creates an < iframe >-html-object. The problem is that due to the security risks caused by iframes in the past every browser nowadays sandboxes the iframe. The iframe has no access to the DOM of the parent-page, so you can't access the other iframes (Page Viewer webparts). More information: ...


1

The page viewer loads into an iFrame. I would think you would need some fancy javascript on both the parent page and the iframe content. You could then call into the parent and activate the functions. If the content is not hosted on SharePoint you might some XSS issues. Parent: functon next(){ Do something } In the iFrame: <a ...


1

The Page Viewer Web Part can be used to display any file that is accessible via a network path or http address. It will be located under the "Content" or "Media and Content" category.


1

To open pdf file in browser use this code WebClient client = new WebClient(); Byte[] buffer = client.DownloadData("address of pdf file"); Response.ContentType = "application/pdf"; Response.AddHeader("content-length", buffer.Length.ToString()); ...


1

This webpart is provided with the feature "BasicWebParts" (ID: 00BFEA71-1C5E-4A24-B310-BA51C3EB7A57). It's a hidden feature, activated by the out-of-the-box site template. See C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\MPS\XML\onet.xml for example. In your case, are use using a custom site ...


1

I resolved this by scrapping the control and writing my own using an HtmlTextWriter object to render the same HTML code, but with the addition of the allowTransparency attribute.


1

Developing web parts is not SharePoint specific, but standard ASP.NET webforms, even though most only use it for SharePoint. And nothing prevent you from embedding the web part into a bare page which can be used in Iframes from other systems. The main thing is who do you want to empower? The end user or the developer? In SharePoint development you goal ...


1

You could just pass the url as a query string parameter to the page in the subsite. Wouldn't something like this work? http://myportal/mysite/mysubsite/default.aspx?refurl=http://myportal/mysite In your code on the subsite page, you can read the querystring and create your site object using that. The query strings should be retained on postback. UPDATE: ...


1

You can use web.URL property... for ex: SPSite oSite=new SPSite("http://yourserver/site1"); SPWeb oWeb=oSite.OpenWeb("site1"); oWeb.URL will give you the URL of the web...


1

Have you tried: System.Web.HttpContext.Current.Request.Path


1

I would try useing jQuery/COM to get URLs from list dynamically and hardcode this inside CEWP


1

Please try the following piece of code and see if it works. SPLimitedWebPartManager wpManger = site.OpenWeb().GetLimitedWebPartManager(your page url, System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared); PageViewerWebPart pageViewerWP = new PageViewerWebPart(); pageViewerWP.Title = "My Page Viewer"; pageViewerWP.ContentLink = ...


1

It sounds like you don't have permission to view those Site Pages. I find half the problems I run into with SharePoint are permissions issues. If you have access to an Site Owner or Administrator Account, login to that account and try the code. If not, as always, contact your system administrator.


1

You cannot access the current SharePoint user information from an external web site. The page viewer web part will only include your ASP.Net page in an iFrame. The SharePoint Authentication will not be passed through. To get the URL you should be able to parse the http-referrer. That should be the surrounding SharePoint page's url. To receive the user ...


1

An network share is displayed using an ActiveX control (explorer view), which always render on top of everything.



Only top voted, non community-wiki answers of a minimum length are eligible