Friday, September 15, 2006

Web Capture Issue

III.12.03 - A web capture web part that accesses information from an external site requires action from me. How can I avoid this?
A:
I am using a Web Capture part that gets information from news.bbc.co.uk. Every time I access the page containing this web part, a message box comes up with the following text

"This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?"

On Pressing OK, the part refreshes correctly.

However I want to avoid having to press OK every time I access the page. This is how to do it.

In Internet Explorer select Tools from the Menu line. Then

Internet OptionsSecuritywith Local Intranet selected click on 'Custom Level'In the Miscellaneous section change the value of 'Access Data Sources Across Domains' from Prompt to Enable

(Thanks to John Dougherty for asking a question that had been annoying me for weeks; thanks too to David McKenzie for supplying the answer)

Warning: Any effects on your sites/clients security caused by amending this security item in IE are your problem.

P.S. 'CINsyg' sent me this comment

"It can be done by adding the following line above the namespace in your code
[assembly:AllowPartiallyTrustedCallers]

(or by setting the web.config to Full trust, but that is not the way to go). "

Web Capture web part

Web Capture web part
Web Capture Web Part
Download details: Office 2003 Add-in: Web Parts and Components
http://www.microsoft.com/downloads/details.aspx?FamilyID=38be67a5-2056-46a1-84b1-337ffb549c5c&DisplayLang=en
The Web Capture Web Part captures content from a Web page or portion of a Web page.
Using Internet Explorer, go to the Web Part Page that contains the Web Part you want to customize.
In the Actions list, click Edit Page.
Note If the View Page option appears in the Actions list, you are in edit mode
Click the down arrow on the Web Capture Web Part title bar and select Modify Shared Web Part. The Web Capture Web Part pane opens.
Web Capture Web Part pane
In the Web Capture Web Part pane, click Create. The Web Capture dialog box opens.
In the Web Capture dialog box, type the address of the Web page that contains the content you want to capture and go to that page.
The yellow right arrows indicate areas you can capture. To capture the entire page, click the yellow arrow in the top left corner of the page. To capture a subsection, click the yellow arrow next to it. When you click a yellow arrow to capture a page or subsection, a green check mark appears.
Capturing Web content for the Web Capture Web Part
When you finish, click OK.
Click OK in the Web Capture Web Part pane.

Friday, September 08, 2006

MOSS 2007 - Content Types

“A content type is an object that is stored within MOSS that defines several elements of a piece of content, including:
Document Template that the content will be based on
Columns that the content will have associated with it (metadata)
Workflows that the content will use
Information Management policies that apply to the content
Conversion types for the content”

http://blogs.msdn.com/martinkearn/