Solved

Using Page Viewer Web Part to display a specific portion of a page

Posted on 2009-03-30
8
630 Views
Last Modified: 2013-11-07
What is the best way to display only a specific portion of a page in a page viewer web part. i.e., without displaying the header and the footer of the page inside the Page Viewer.
0
Comment
Question by:toramesh
  • 4
8 Comments
 
LVL 16

Accepted Solution

by:
raybies earned 333 total points
ID: 24024495
the pageviewer webpart (PVWP) is just an iframe... yup pretty pathetic. MS could have just add a parameter to the content editor web part.

Anyway, you can't. What ever the page looks like is how you get it, except in a frame. You can do some programming and use an HttpRequest object client or serverside, to get the content at certain points. But you can't do didley  with the PVWP
0
 

Author Comment

by:toramesh
ID: 24024619
But isn't it possible to retrict the html displayed in the "iframe" by specifying a start tag and end tag. i.e., create a web part, get the start tage and end tag from users and display html only within those tags? Is this possible or am I just going in the wrong direction?
0
 
LVL 12

Assisted Solution

by:williamcampbell
williamcampbell earned 167 total points
ID: 24024645
Well you have access to the DOM so maybe you getElementById and set the tags you don't want to see to hidden.

/gotnuthin
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 16

Assisted Solution

by:raybies
raybies earned 333 total points
ID: 24024837
Yes, that's what I mean by "programming", but not with the PVWP.
Chances are you'll have to look for a specific string.

So your JS/C# will be like.

HttpObj.Response.Substring(HttpObj.Response.IndexOf("myStartStr"), HttpObj.Response.IndexOf("myEndStr"))
0
 
LVL 16

Expert Comment

by:raybies
ID: 24900774
Question answered.
0
 
LVL 16

Expert Comment

by:raybies
ID: 24910519
Vee_Mod:

ID:24024495 answered the question.
ID:24024645 elaborated on the answer.
ID:24024837 elaborated on the answer.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 6 26
Counting connections to SQL Server through C# 3 29
Reset asp.net login password 4 34
WCF Service Application cannot connect from TCP terminal 1 14
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now