Градење WebPart во SharePoint 2010 - Видео екран ролите

Microsoft SharePoint развој тим го објави следниот екран фрла за програмери.

Кликни овде за снимката

WSS 3.0 Application Templates Grouped by Business Area

If you are looking for free application template, which suites your business area, read this resource on TechNet. It has list of 40 Application templates grouped by the following business category.

  • Business Management/Finance
  • Human Resources
  • Operations/IT
  • Project Tracking/Product Management
  • Sales/Marketing
  • Specialized/Verticals

How to Use Resource File in SharePoint 2007

Create Resource file using Visual Studio IDE

Copy the resource file into 12 hive resource folder

GetLocalized method from SPUtility to read the values from resource file

Синтакса:

SPUtility.GetLocalizedString(“$Resources:<<ResourceFileName,ResourceKeyName>>”, “<<ResourceFileName>>”, lang);

Пример:

SPUtility.GetLocalizedString(“$Resources:MyResources,Име”, “MyResources”, lang);

Sample Source:

користење на System;

користење на System.Runtime.InteropServices;

користење на System.Web.UI;

користење на System.Web.UI.WebControls;

користење на System.Web.UI.WebControls.WebParts;

користење на System.Xml.Serialization;

користење на Microsoft.SharePoint;

користење на Microsoft.SharePoint.WebControls;

користење на Microsoft.SharePoint.WebPartPages;

користење на Microsoft.SharePoint.Utilities;

namespace ResourceFile

{

[Раководство(“fc643df7-8836-41bf-913f-662ed57e659a”)]


јавноста
class
ResourceCollection : System.Web.UI.WebControls.WebParts.WebPart

{


низа Име;


низа Презиме;


јавноста ResourceCollection()

{

}


protected
override
поништат CreateChildControls()

{


base.CreateChildControls();


uint lang = SPContext.Current.Web.Language;

FirstName = SPUtility.GetLocalizedString(“$Resources:MyResources,Име”, “MyResources”, lang);

LastName = SPUtility.GetLocalizedString(“$Resources:MyResources,Презиме”, “MyResources”, lang);

}


protected
override
поништат Render(HtmlTextWriter writer)

{

writer.Write(“Value of First Name from Resource File : “ + Име);

writer.Write(“Value of Last Name from Resource File : “ + Презиме);

}

}

}

Topologies за SharePoint 2010

На TechNet ресурс на SharePoint 2010 Топологии модел го објаснува на следниот:

  • Read about how the new services model applies to physical topologies
  • Review detailed guidance on which services to start on farm servers
  • See sample topologies for small, медиум, и големи средини

Превземи тука за SharePoint 2010 Topologies Model from Technet

The trial period for this product has expired – MOSS 2007 Грешка

If you encounter the error “The trial period for this product has expired” after upgrading the license from trial to standard/enterprise edition in sharepoint.

Change your app pool account from “Мрежна услуга” to Domain account.

How to Enable Document Information Panel in MOSS 2007

By Default the document information panel will not be enabled in document library.

Go to Library Settings

Click Advanced Settings

Enable allow management of content types in Advanced Settings.

Click the Document Content Type and click on Document Information Panel settings.

Check show always option to enable document information panel.

Item Updating or Updated Event Occurs twice in Document Library

Item Updating or Item Updated Event in SharePoint 2007 occurs twice, if require checkout option is enabled for document library.

I found the following workaround from Microsoft Support for this issue.

Check the value of vti_sourcecontrolcheckedoutby
во BeforeProperties и AfterProperties, if the both values are null then the event is triggered by check in else the event is triggered by other actions.

ако (properties.AfterProperties[“vti_sourcecontrolcheckedoutby”] == null && properties.BeforeProperties[“vti_sourcecontrolcheckedoutby”] != null)

{

//This is when the update event is triggered by check-in.

}

на друго место

{

//This is triggered by events other than check-in action.

}

How to Find the SharePoint Version Installed in System

To find the installed version of SharePoint in system,

Browse to Central Administration -> Operations -> Servers in Farm [Topology and Services]

Version information will be displayed for each and every server.

How to Restrict the Users to Edit from SharePoint Designer

Permission Level for the user or group can be modified to restrict the user to edit in SharePoint designer.

Мапа на Settings -> Advanced Permissions

Click Advanced Permissions, Select Settings -> Permission Levels

You can add/edit existing permission level.

Uncheck Browse Directories Permission level.

Како да користите RSS WebPart во SharePoint

Create New WebPart Page.

In Edit Mode, Click add WebPart then select RSS Viewer WebPart from gallery.

Click Modify Shared WebPart to change to Edit mode of WebPart, then specify the RSS URL.