Solved

Updating SharePoint 2010 pages from a client

Posted on 2013-01-03
5
273 Views
Last Modified: 2013-01-22
We are using MS Hosted SharePoint 2010 (dedicated bpos also known as office 365).

We have a number of sites that are for support of applications we operate internally.

We want to update pages on those sites with statistics on our internal systems operations.  Information like # of active users over last week, # of DB records, etc.

Seems like 2 ways are: 1, modify existing pages on the site; 2, replace pages (and keep content for replacement here).  I'm not really sure how to do #2.

So, Assuming we're going with #1, can someone identify how we can modify content of a static page on our SharePoint site and provide an example of some code in VB.Net or C# that would modify a SharePoint page to replace a value.

Let's say for example we make the example simple.  We have a page with nothing on it except the # of DB records in our internal DB.  Can someone provide an example of how to set up a page with a value like that on it and the code to modify it (weekly schedules) to reflect a change to that field?

Code would need to start with the connection through existing.  The code would run on a Windows server at our end and connect to the SP as a "client".
0
Comment
Question by:klamerus
  • 2
  • 2
5 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
Comment Utility
Hi,

I would go another way:
1. Upload the content to be displayed (could be also HTML) as a text file to a dedicated document library
2. Add a content editor web part to the pages where you want to share the information and set the link to the uploaded file

Whenever you want to update the information, just upload the adjusted textfile and voila, your pages are updated.

The upload might also be scripted as a document library can be accessed like a network share (should also work with Office 365).

HTH
Rainer
0
 
LVL 1

Author Comment

by:klamerus
Comment Utility
This is reasonable (or a list), but now I still need an example of how to modify either of those in a SharePoint page as described.

Or rather since they're separate how to replace those items via some .Net snippet that actually would work (in any example SP site).
0
 
LVL 14

Expert Comment

by:KoenVosters
Comment Utility
I would upload an xml file containing the information to a document library. Create a custom webpart (since you are O365D you should run the code through MSOCAF) that reads the information from the xml and displays it.
0
 
LVL 1

Author Comment

by:klamerus
Comment Utility
So far as I know in our contract we aren't allowed to deploy any custom components in MS Office 365 Dedicated.  The process MS has for approval of new components (such as a custom component from us) is very onerous.  We really need to use SP directly as is.
0
 
LVL 14

Accepted Solution

by:
KoenVosters earned 500 total points
Comment Utility
If that is what you want to do, then just use a page viewer webpart that shows the information from a page running on an internal web server (make sure that you push a policy that adds the website to intranet sites so people don't get an authentication popup should it be authenticated)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

21 Experts available now in Live!

Get 1:1 Help Now