Skip to main content

Posts

Sharepoint 2010 Search

Below is a simplified version of an MS slide showing the differences across the product family: Improvements to Search in the core SharePoint 2010 product: Microsoft marketing focuses on 3 target audiences with the following messages: End Users with “Go beyond the search box” — improvements to the search experience, including user interfaces and ability to search from the desktop or mobile device, and a focus on people and social search. IT Professionals with “Eliminate compromise between managability and capability ” — in other words here is a system with both best of breed search features, but also one that is easy to manage. Access both unstructured and structured content using Business Connectivity Services (BCS) and other federated search options. Developers with “Do more with search ” — a call to action to use the available tool sets to extend the base platform and build search solutions for existing applications (e.g. ERP and CRM) but also go further and build search ...

Sandboxed Solutions are not Enabled in Sharepoint 2010

I was trying to write a simple browser enabled InfoPath form with code behind and like to get this run as Sandboxed solution in SharePoint 2010. When I was publishing this form following error was thrown : "The form template cannot be published to the server: ServerName . Sandboxed Solutions are not enabled on the SharePoint Server Farm." On further investigation I found that "Microsoft Sharepoint Foundation User Code Service" is required to run for the Sandboxed solutions to work. To enable this service go to Central Administration and in Manage Services on Server, Start “Microsoft Sharepoint Foundation User Code Service” :

Sharepoint 2010 Interview Questions ( may also apply for MOSS 2007 )

How can I check to see if a slow loading SharePoint page has closed webparts? The way to check for closed webparts is ?contents=1 at the end of the url Example: http://www.sharepointjoel.com/default.aspx?contents=1 Brings up the webpart maintenance page and I can see the categories and a content editor webpart that are closed. These are affecting the performance of the page negatively and providing little value. Now if I at some point want to re-add the categories web part, I should not delete it. As well, a content editor web part will need to be recreated. There is no recycle bin for restoring deleted content in a content editor web part. Why should you not use Render()? [ only use RenderContents() or use the more OO approach and implement CreateChildControls() ] A. Basically the WPSC provides developers with a SharePoint specific client-side DOM that allows developers to listen for events, interact with Web Parts and even set properties... all through script on the client. The WP...

RealTime Sharepoint Interview Questions 6

What are WebPart properties, and what are some of the attributes you see when declaring WebPart properties in code? WebPart properties are just like ASP.NET control properties, they are used to interact with and specify attributes that should be applied to a WebPart by a user. Some of the attributes you see with ASP.NET 2.0 properties are WebDescription, WebDisplayName, Category, Personalizable, and WebBrowsable. Although most of these properties come from the System.Web.UI.WebControls.WebParts class, ones like Category come out of System.ComponentModel namespace.  Why are properties important in WebPart development, and how have you exploited them in past development projects? What must each custom property have? Properties are important because WebParts allow levels of personalization for each user. WebPart properties make it possible for a user to interact, adjust, and increase overall experience value with the programmatic assets that you develop without having the need ...

RealTime Sharepoint Interview Questions 5

What is an ancestral type and what does it have to do with content types? An ancestral type is the base type that the content type is deriving from, such as Document (0x0101). The ancestral type will define the metadata fields that are included with the custom content type.   Can a list definition be derived from a custom content type? Yes, a list definition can derive from a content type which can be seen in the schema.XML of the list definition in the element. When creating a list definition, how can you create an instance of the list?   You can create a new instance of a list by creating an instance.XML file What is a Field Control?   Field controls are simple ASP.NET 2.0 server controls that provide the basic field functionality of SharePoint. They provide basic general functionality such as displaying or editing list data as it appears on SharePoint list pages. What base class do custom Field Controls inherit from?   This varies. Generally, custom fi...

RealTime Sharepoint Interview Questions 4

What deployment mechanism can you use to instigate Code Access Security attributes for your WebParts? SharePoint solution files can add in order to handle code access security deployment issues. This is done in the element in the SharePoint solution manifest.XML, which makes it easier to get assemblies the appropriate permissions in order to operate in the bin directory of the web application. What is a SharePoint Feature? What files are used to define a feature? A SharePoint Feature is a functional component that can be activated and deactivate at various scopes throughout a SharePoint instances, such as at the farm, site collection, web, etc. Features have their own receiver architecture, which allow you to trap events such as when a feature is installing, uninstalling, activated, or deactivated. They are helpful because they allow ease of upgrades and versioning. The two files that are used to define a feature are the feature.xml and manifest file. The feature XML file def...

RealTime Sharepoint Interview Questions 3

What is the difference between an Internet and an intranet site? An internet site is a normal site that anyone on the internet can access (e.g., www.msn.com, www.microsoft.com, etc.). You can set up a site for your company that can be accessed by anyone without any user name and password. An intranet (or internal network), though hosted on the Web, can only be accessed by people who are members of the network. They need to have a login and password that was assigned to them when they were added to the site by the site administrator   What are the various kinds of roles the users can have? A user can be assigned one of the following roles Reader - Has read-only access to the Web site. Contributor - Can add content to existing document libraries and lists. Web Designer - Can create lists and document libraries and customize pages in the Web site. Administrator - Has full control of the Web site. How customizable is the user-to-user access? User permissions apply to an enti...

RealTime Sharepoint Interview Questions 2

What are the two base classes a WebPart you are going to use within SharePoint 2007 can inherit from? There are two base classes that a WebPart which is going to be consumed by SharePoint can inherit from, either the SharePoint WebPart Base class or the ASP.NET 2.0 WebPart base class. When inheriting from the SharePoint WebPart Base class your derived WebPart class will inherit from Microsoft.SharePoint.WebPartPages.WebPart. When inheriting from the ASP.NET 2.0 WebPart base class your derived WebPart class will inherit from System.Web.UI.WebControls.WebParts.WebPart. It is considered good practice to use the ASP.NET WebPart base class since the old base class is meant for backwards compatibility with previous version of SharePoint, however there are four exception when it is better to leverage functionality from the SharePoint WebPart base class: Cross page connections Connections between Web Parts that are outside of a Web Part zone Client-side connections (Web Part Page Services...

RealTime Sharepoint Interview Questions 1

  What does AllowUnsafeUpdates do ? If your code modifies Windows SharePoint Services data in some way, you may need to allow unsafe updates on the Web site, without requiring a security validation. You can do by setting the AllowUnsafeUpdates property. C#: ? 1    2 3 4 5 6 7 8 9 using (SPSite mySite = new SPSite( "yourserver" )) { using (SPWeb myWeb = mySite.OpenWeb()) { myWeb.AllowUnsafeUpdates = true ; SPList interviewList = myWeb.Lists[ "listtoinsert" ]; SPListItem newItem = interviewList.Items.Add(); newItem[ "interview" ] = "interview" ; newItem.Update(); } }   What does RunWithElevatedPrivileges do?   Assume that you have a Web Part in which you want to display information obtained through the Windows SharePoint Services object model, such as the name of the current site collection owner, usage statistics, or auditing information. These are examples of calls into the object model that require site-administration privileges. Your...

What is InfoPath?