Q: How can I check to see if a slow loading SharePoint page has closed webparts? A.

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.

Q. 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 WPSC is implemented using a bunch of client-side code. You can see a snippet of it if you look at the source of a SharePoint page. When SharePoint renders the page, it adds a unique ID to the HTML <TABLE> as well as a unique ID to the <DIV>... developers can use these ID's to get to the Web Part via client-side code. When you use RenderContents() or CreateChildControls(), the rendered markup produced by those methods is put inside the <DIV>. If you override Render(), you are replacing the entire <TABLE>! Thus, by replacing the entire table, you are breaking the WPSC... the whole SharePoint specific DOM. http://www.andrewconnell.com/blog/archive/2008/02/18/Understanding-how-Web-Parts-arerendered-why-to-never-use.aspx

- What are the types of authentication available for Sharepoint 2010 ?
  

Claims Windows Forms-based authentication

Ref : http://technet.microsoft.com/en-us/library/cc262350(office.14).aspx - What is claims based authentication ? Claims is a new authentication method that SharePoint 2010 can utilize. This allows a single authentication store for multiple types of authentication (Windows NTLM, SQL FBA, LDAP, etc) which allows all of these types of authentication to access SharePoint under a single URL.

Claims creates a SAML token based on the sign-in, that contains the user’s identity. Ref: http://blogs.technet.com/ritaylor/archive/2009/06/03/claims-based-authentication-anoverview.aspx - How do we use the claims identity outside of SharePoint?
  

LOB systems External partner services Separate SharePoint farms

- What is LINQ to Sharepoint ?
      

LINQ is a feature of the programming languages C# 3.0 and Visual Basic .NET LINQ adds, to each of the languages, a SQL-like syntax and vocabulary for querying data sources. LINQ to Sharepoint allows developers to use SQL-like syntax to query Lists and Libraries in Sharepoint. LINQ to Sharepoint internally converts the LINQ query to a CAML query to fetch records Advantage : Strongly typed access to the entities of the list. Disadvantage : If the new columns are added or its datatype changed, the datacontext class used by LINQ is no longer valid and may break the code

- Name the tool used to create DataContent classes for use in LINQ queries? SPMetal.exe - What are the advantages and disadvantages of LINQ to Sharepoint ? Advantages:
   

Intellisense Strongly typed access to the entities of the list Faster development Simplify complex queries

Disadvantages:
  

If the new columns are added or its datatype changed, the datacontext class used by LINQ is no longer valid and may break the code Extra layer to the actual CAML query

In Sharepoint 2010, at what levels can a workflow be activated ? ( Alt Q: What is the additional scope a workflow be activated in Sharepoint 2010 ) ?

You can deploy multiple instances of the same service in a farm by giving the new service instances unique names. .WebControls.0 WebPart base class your derived WebPart class will inherit from System. .UI.SharePoint. Audiences = People Service App Search = Search Service App Excel = Excel Service App Whats new :   Project Server = Project Server App Visio Services = Visio Service App Advantages :    Web applications can be configured to only use a subset of the deployed services.Can MS Visio be used to create a Sharepoint workflow ? MS Visio cannot be used to create the Sharepoint workflow itself.NET WebPart base class since the old base class is meant for backwards compatibility with previous version of .NET 2. either the SharePoint WebPart Base class or the ASP.WebParts. but can be used for workflow visualization. you must be running the Enterprise version of SharePoint Server 2010 and Visio 2010 Premium. When inheriting from the ASP. You can share services across multiple web applications in a farm.Web. It is considered good practice to use the ASP.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.WebPart. Note: To use Visio 2010 for workflow visualization.0 WebPart base class. When inheriting from the SharePoint WebPart Base class your derived WebPart class will inherit from Microsoft. What is replaced :    Profiles.WebPartPages. the flow diagram designed in Visio can be imported in Sharepoint Designer where all the functionality can be added and deployed to Sharepoint.Whats new in Shared Service Provider (SSP ) in Sharepoint 2010 ? ( Alt Q: What is "Service Application" ? ) “Service Application” or “Service App” is a concept in Sharepoint 2010.Can a workflow created in Sharepoint Designer be edited in Visual Studio ? .WebPart. What this means is that.NET 2. where SSP Services are split out into separate services.

WebPart base class is meant for backward compatibility with previous versions of SharePoint.What is strong naming (signing) a WebPart assembly file mean? Signing an assembly with a strong name (a. such as embedding resources as opposed to use ClassResources for deployment of said types.a strong naming) uses a cryptographic key pair that gives a unique identity to a component that is being built.0.NET 2.SharePoint.0 web architecture. It is the machine wide code cache which will give custom binaries place into the full trust code group for SharePoint. . and therefore are put into the GAC. Certain SharePoint assets. Inheriting from the ASP.SharePoint. such as Feature Receivers need full trust to run correctly.WebPartPages. .NET 2. 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 Component) Data caching infrastructure . This identity can then be referred throughout the .k.NET 2. The benefit of using the SharePoint WebPart base class is it supported:     Cross page connections Connections between Web Parts that are outside of a Web Part zone Client-side connections (Web Part Page Services Component) Data caching infrastructure ASP.NET 2. You should always try to avoid deployment to the GAC as much as possible since it will possibly allow development code to do more than it was intended to do.0 base class offers you features that inherit to ASP.What are the differences between the two base classes and what are the inherit benefits of using one over another? The difference is the Microsoft.0 WebParts are generally considered better to use because SharePoint is built upon the ASP.What is the GAC? The GAC stands for the global assembly cache.

etc.0 WebPart? . In the relevant WebPart render method. those not will not be loaded and will throw an error. In order to install assemblies into the GAC. wire any relevant event handlers to the control.NET controls that are called instantiating each control with its relevant properties set. is placed in that element in a SharePoint web. the binary will have a public key token identifier which can be use to register the component in various other places on the server. In order to create something like a label control in Create.rest of the environment. There are other optional elements. When using CreateChildControls it implies that your WebPart contains a composition of child controls. After signing. set the various properties of the control like Visible=True and ForeColor = Color. the namespace. Then you can declare EnsureChildControls in the Render method of the WebPart. and what type of information. . you must first make it as a safe control to use within SharePoint in the web. you would create a new label control using the new keyword. Entries made in the safe controls element of SharePoint are encountered by the SharePointHandler object and will be loaded in the SharePoint environment properly. .Red. it will add any child ASP. In the generic safe control entry (this is general.Add(myLabelControl) to add the control to the controls collection.config file.What are safe controls. there could be more). the public key token numeric.NET 2. the typename. and the safe declaration (whether it is safe or not). they must be strongly named.What is the CreateChildControls() method? How can you use it to do something simple like displaying a Label control? The CreateChildControls method in WebParts is used to notify the WebPart that there are children controls that should be output for rendering. . Then the add method of the control class will add the control to the controls collection. and then use Controls.What does the RenderContents method do in an ASP. Basically. there is generally the Assembly name. the EnsureChildControls method can be called (or set to false if no child controls should be called) to ensure that the CreateChildControls method is run.config file? When you deploy a WebPart to SharePoint.

usually an HtmlTextWriter since WebParts will output to an HTML stream. *** Side Question: I got asked what the difference between CreateChildControls and the RenderContents method. .How would you go about getting a reference to a site? ? 1C#: 2oSPSite = new SPSite("http:/server").OpenWeb().” *** Side Question: I got asked how many WebPartManager controls should be on a page. such as the WebParts (controls).What is a SPSite and SPWeb object. In order to have WebParts on a page there has to be just one WebPartManager control to manage all the WebParts on the page. . the WebPartManager is responsible for the functionality that is provided when you are working with moving a WebPart from WebPartZone to WebPartZone. and what is the difference between each of the objects? The SPSite object represents a collection of sites (site collection [a top level sites and all its subsites]). events.What does a SPWebApplication object represent? . A SPSite object contains the various subsites and the information regarding them.The render contents method will render the WebPart content to the writer. . . and misc. The SPWeb object represents an instance SharePoint Web. It is known as the “the central class of the Web Part Control Set. 3 4oSPWeb = oSPSite. functionality that will occur in WebPartZones. and SPWeb object contains things like the actual content. For example. The CreateChildControls method is used to add controls to the WebPart. RenderContents is used to tell how the controls that are going to be displayed in the WebPart should be rendered on the page.What is the WebPartManager sealed class? What is its purpose? The WebPartManager sealed class is responsible for managing everything occurring on a WebPart page. and the RenderContents method is used to tell the page framework how to render the control into HTML to display on a page.

and already have all the site code written? ? 1C#: .Mail functionality since it doesn’t allow things like setting priorities on the email. since this is a Web Application level setting. Side Question: I got asked if there are other ways to send emails from SharePoint.Would you use SPWebApplication to get information like the SMTP address of the SharePoint site? Yes.Net. there is. newItem. 7 SPListItem newItem = interviewList.How would you loop using SPList through all SharePont List items. You would iterate through each SPWebApplication in the SPWebApplication collection. assuming you know the name (in a string value) of the list you want to iterate through. You can use the SendMail method from the SPutility class to send simple emails. and how do you insert a new List Item? ? 1 2 C#: 3 using(SPSite mySite = new SPSite("yourserver")) { 4 using(SPWeb myWeb = mySite. however it is not as robust as using the System.OpenWeb()) 5 { 6 SPList interviewList = myWeb.Update(). Using the class you can instigate high level operations. 10} 11} 12 .Lists["listtoinsert"].The SPWebApplication objects represents a SharePoint Web Application. . which essentially is an IIS virtual server. . 8 9 newItem["interview"] = "interview".Add(). The answer is yes. or doing high level creation operations like creating new Web Applications through code.How do you connect (reference) to a SharePoint list.Items. such as getting all the features of an entire Web Application instance. and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address.

There are other ways to do this as well. etc.com. In order to build queries with this service. Side Question: I got asked how I built queries with the lists. though hosted on the Web. which will allow the return of the full content of the list in an XML node. Administrator . can only be accessed by people who are members of the network.Lists["listtoiterate"]. You can set up a site for your company that can be accessed by anyone without any user name and password.asmx web service by establishing a web reference in Visual Studio.How do you return SharePoint List items using SharePoint web services? In order to retrieve list items from a SharePoint list through Web Services. Web Designer . .Can add content to existing document libraries and lists. www. . It will take parameters like the GUID of the name of the list you are querying against.Has full control of the Web site.microsoft.msn. you should use the lists.What are the various kinds of roles the users can have? A user can be assigned one of the following roles     Reader .. but that was how I answered it. They need to have a login and password that was assigned to them when they were added to the site by the site administrator . www. 3foreach (SPListItem interview in interviewList) { 4// Do Something 5} 6 .). The lists.Has read-only access to the Web site.Can create lists and document libraries and customize pages in the Web site. etc. Contributor .asmx web service.asmx exposes the GetListItems method. the GUID of the view you are going to query. An intranet (or internal network). one of the parameters that the GetListItems method exposes is the option to build a CAML query.g.2SPList interviewList = myWeb.com.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.

Additional roles can be defined by the administrator.Can SharePoint be linked to a SQL database? This is possible via a custom application. Option Pros Cons This option is least secure.NET and the CLR to provide assemblies installed in the BIN directory with sufficient permissions. you can have additional sub webs that can optionally have their own permissions. This option affects all assemblies used information. "Setting the trust level you to test an assembly with for a virtual server" increased permissions while . for the entire virtual server. . see increasing the trust level allows by the virtual server. but it not natively supported by SharePoint or SQL Server. Increase the trust level Easy to implement.. the code must be ensured that provides error handling in the event that required permissions are not available. However. Can each user have access to their own calendar? Yes there are two ways to do this. or by creating a calendar with a view for each user .How can I raise the trust level for assemblies installed in the BIN directory? Windows SharePoint Services can use any of the following three options from ASP.How customizable is the user-to-user access? User permissions apply to an entire Web.   by creating a calendar for each user. The following table outlines the implications and requirements for each option. not to documents themselves. unhandled security exceptions may cause the Web Part to fail and may affect page rendering on the page where the Web Part appears . Otherwise.What does partial trust mean the Web Part developer? If an assembly is installed into the BIN directory. Each user can be given any of four default roles. For more In a development environment.

Recommended approach. Requires the most configuration of all three options. Create a custom An assembly can operate with a policy file for your unique policy that meets the assemblies. server has the required trust level. Web Parts may not work once installed on the destination server. This could represent a potential security risk as it potentially grants a higher level of permission to your assembly across a larger scope than necessary Easy to implement. Therefore. . do I create a custom policy file?" By creating a custom security policy. Assemblies installed in the GAC are available to all virtual servers and applications on a server running Windows SharePoint Services.allowing you to recompile assemblies directly into the BIN There is no guarantee the destination directory without resetting IIS. This option is less secure. see "How requirements for the assembly. In a development environment. For more minimum permission information. you can ensure the destination server can run your Web Parts. This option is most secure. Licensing issues may arise due to the global availability of your assembly. Install your assemblies in the GAC This grants Full trust to your assembly without affecting the trust level of assemblies installed in the BIN directory. you must reset IIS every time you recompile assemblies.

that normally.NetworkCredential class to specify the username. and when would you use impersonation? Impersonation can basically provide the functionality of executing something in the context of a different identity. and then using the credentials properties of the Web Service object you use the System. A general use would be building a CAML query in a SharePoint WebPart in order to retrieve values from a SharePoint list. you generally instantiate the web service. overall is used to query. CAML can be used for a variety of circumstances. *** Side Question: I got asked when you should state the credentials in code. otherwise the call will fail. and is used for table definition during site provisioning. You would use impersonation in order to access resources on behalf of the user with a different account. and domain that you wish to pass when making the web service call and operations. . view.What is impersonation.What is CAML. password. build and customize SharePoint based sites. . and why would you use it? CAML stands for Collaborative Application Markup Language. It was helpful to use in 2003 since it allowed your WebPart to have a preview while a page was edited in FrontPage with the Webpart on it. for example assigning an account to users with anonymous access. that wouldn’t be able to access or execute something. how do you specify explicit credentials to be passed to access the list items? In order to specify explicit credentials with a Web Service. CAML is responsible for rending data and the resulting HTML that is output to the user in SharePoint.Net. . and when can you use it in WebParts? The IDesignTimeHtmlProvider interface uses the function GetDesignTimeHtml() which can contain your relevant render methods. You must state the credentials you are going to pass to the web service before you call any of the methods of the web service.When retrieving List items using SharePoint Web Services. .. CAML is an XML based language which provides data constructs that build up the SharePoint fields.What is the IDesignTimeHtmlProvider interface.

NET 2. Some of the attributes you see with ASP.UI.0 properties are WebDescription. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire. they are used to interact with and specify attributes that should be applied to a WebPart by a user.WebParts class.What are WebPart properties.NET 2.Web.because the GetDesignTimeHtml() method contains the HTML for the designer to render.What are ClassResources? How do you reference and deploy resources with an ASP. ones like Category come out of System. . typically things such as images are referenced by embedding them as resources within an assembly. In ASP.WebPartPages. WebDisplayName. Although most of these properties come from the System.0. and WebBrowsable. Personalizable.WebPart base class.0 WebPart? ClassResources are used when inheriting from the SharePoint.ComponentModel namespace. . .WebPart.Why are properties important in WebPart development. and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code. Category.WebControls. and are defined in the SharePoint solution file as things that should be stored in the wpresources directory on the server. .NET 2. The good part about ClassResources is they can help to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files.NET control properties. It is a helpful directory to use in order to deploy custom images. and what are some of the attributes you see when declaring WebPart properties in code? WebPart properties are just like ASP. Each custom property that you have must have the appropriate get and set accessor methods. WebPart properties make it possible for a user to interact. adjust. 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.

What is a SharePoint Solution File? How does it differ from WebPart . Can provide Code Access Security provisioning to avoid GAC deployments Just to name a few things… . which makes it easier to get assemblies the appropriate permissions in order to operate in the bin directory of the web application.ddf file will be passed as a parameter to the MAKECAB utility to orchestrate construction of the SharePoint solution file. etc.3 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. .What is a .ddf file is a data directive file and is used when building the SharePoint solution bundle specifying the source files and their destination locations.wsp extension that aids in deployment.ddf file and what does it have to do with SharePoint Solution creation? A . This is done in the element in the SharePoint solution manifest.XML. Sharepoint 2010 Interview questions . retraction. .XML file.cab files in legacy development? What does it contain? A SharePoint solution file is essentially a .What file does a SharePoint solution package use to orchestrate (describe) its packaged contents? The solution Manifest. Webparts.. feature definitions (and associated components). and versioning Can package all types of assets like site definitions. The big difference with SharePoint solution files is is that a solution: allows deployment to all WFE’s in a farm is highly manageable from the interface allowing deployment. The important thing for someone to understand is that the .cabinet file with all a developers ustom componets suffixed with a .

such as adding an item or deleting an item. . web. activated. SharePoint features are important when understanding the architecture of site definitions. They are helpful because they allow ease of upgrades and versioning. etc. or deactivated. Features have their own receiver architecture. which allow you to trap events such as when a feature is installing. . and provide the option of responding to events as they occur within SharePoint. uninstalling..XML file has been vastly truncated since it has several feature stapled on it.What are event receivers? Event receivers are classes that inherit from the SpItemEventReciever or SPListEventReciever base class (both of which derive out of the abstract base class SPEventRecieverBase).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. Side Question: I got asked how the introduction of features has changed the concept of site definitions. since the ONET. such as at the farm. For example. The feature XML file defines the actual feature and will make SharePoint aware of the installed feature. The manifest file contains details about the feature such as functionality. you could deploy          Simple site customizations Custom site navigation WebParts pages list types list instances event handlers workflows custom actions .xml and manifest file. The two files that are used to define a feature are the feature.What types of SharePoint assets can be deployed with a SharePoint feature? Features can do a lot. site collection.

Title += "interview". This would essentially prevent users from deleting any documents if you wanted to maintain retention of stored data.What is a content type? . . and its sister synchronous event is ItemAdding. 33) What is the difference between an asynchronous and synchronous event receivers? An asynchronous event occurs after an action has taken place. 2site. .Update(). an asynchronous event is ItemAdded. you could use a receiver for something as simple as canceling an action. .RootWeb.What base class do event receivers inherit from? Event receivers either inherit from the SPListEventReciever base class or the SPItemEventReciever base class.When would you use an event receiver? Since event receivers respond to events. .Can an event receiver be deployed through a SharePoint feature? Yes.How could you append a string to the title of a site when it is provisioned? In the OnActivated event: ? 1SPWeb site = siteCollection. .Cancel= true.If I wanted to not allow people to delete documents from a document library. such as deleting a document library by using the Cancel property. For example. 3site.. how would I go about it? You would on the ItemDeleting event set: properties. and a synchronous event occurs before an action has take place. both which derive from the abstract base class SPEventReceiverBase.

Hidden. however makes it portable for use throughout an instance regardless of where the instantiation occurs. listform pages. Required.Can a list definition be derived from a custom content type? Yes. It is basically an extension of a SharePoint list. and version. DisplayName. and associated custom written functionality. They are related by the FieldRefs element in the main content type file. The ancestral type will define the metadata fields that are included with the custom content type. . a list definition can derive from a content type which can be seen in the schema. .What two files are typically (this is kept generally) included when developing a content type. or inheriting from the SPItemEventReciever base class. either inheriting from the SPListEventReciever base class for list level events. description. group.XML of the list definition in the element. Multiple content types can exist in one document library assuming that the appropriate document library settings are enabled.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. StaticName. a content type can have an event receiver associated with it. Whenever the content type is instantiated. . The content type will contain things like the metadata. . name. and what is the purpose of each? There is generally the main content type file that holds things like the content type ID.Fields file which contains the fields to include in the content type that has the ID. . and Sealed elements. Name. it will be subject to the event receivers that are associated with it. templates (if a document content type). such as Document (0x0101). There is also the ContentType. Type. ergo has location independence.A content type is an information blueprint basically that can be reused throughout a SharePoint environment for defining things like metadata and associated behaviors. workflows.Can a content type have receivers associated with it? Yes.

although appear to have unique pages. . and therefore the customizations are instead stored in the database.When creating a list definition. Generally.What is a SharePoint site definition? What is ghosted (uncustomized) and unghosted (customized)? SharePoint site definitions are the core set of functionality from which SharePoint site are built from. but you can inherit from the default field controls..What is a Field Control? Field controls are simple ASP.How does one deploy new SharePoint site definitions so that they are made aware to the SharePoint system? The best way to deploy site definitions in the SharePoint 2007 framework is to use a SharePoint solution file. .What base class do custom Field Controls inherit from? This varies. breaking the inheritance of those files from the file system. They provide basic general functionality such as displaying or editing list data as it appears on SharePoint list pages.NET 2. custom field controls inherit from the Microsoft.0 server controls that provide the basic field functionality of SharePoint. . Unghosted means that the site has been edited with an external editor. .XML file. thereby increasing performance and allowing changes that happen to a site propagate to all sites that inherit from a site definition. building from the SiteTemplates directory in the SharePoint 12 hive. Ghosted means that when SharePoint creates a new site it will reference the files in the related site definition upon site provisioning.SharePoint.BaseFieldControl namespace.WebControls. Site definitions allow several sites to inherit from a core set of files on the file system. how can you create an instance of the list? You can create a new instance of a list by creating an instance. . so that the new site definition is automatically populated to all WFE’s in the SharePoint farm.

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.When creating a list definition. That server must be SQL Server 2000 or SQL Server 2005. how can you create an instance of the list? You can create a new instance of a list by creating an instance. . They provide basic general functionality such as displaying or editing list data as it appears on SharePoint list pages.How to create links to the mapped network drives? . Not literally the same database on that server.NET 2.XML file . Generally.SharePoint. a list definition can derive from a content type which can be seen in the schema. such as Document (0x0101).Can multiple SharePoint installs point to the same DB? Multiple SharePoint installs can use the same database server.What base class do custom Field Controls inherit from? This varies.BaseFieldControl namespace.What is a Field Control? Field controls are simple ASP. . . . but you can inherit from the default field controls.WebControls. It cannot be Oracle or another vendor.0 server controls that provide the basic field functionality of SharePoint. . The ancestral type will define the metadata fields that are included with the custom content type.XML of the list definition in the element. custom field controls inherit from the Microsoft.Can a list definition be derived from a custom content type? Yes.

. You can control the exact rendering of your controls by calling the .What is a SPSite and SPWeb object. such as getting all the features of an entire Web Application instance. For example. A SPSite object contains the various subsites and the information regarding them. the WebPartManager is responsible for the functionality that is provided when you are working with moving a WebPart from WebPartZone to WebPartZone. .While creating a Web part.Render method in the web parts Render method.What is the WebPartManager sealed class? What is its purpose? The WebPartManager sealed class is responsible for managing everything occurring on a WebPart page. Using the class you can instigate high level operations. such as the WebParts (controls). which is the ideal location to Initialize my new controls? Override the CreateChildControls method to include your new controls. and misc. and what is the difference between each of the objects? The SPSite object represents a collection of sites (site collection [a top level site and all its subsites]). events.Would you use SPWebApplication to get information like the SMTP address of the SharePoint site? .Creating links to mapped drives in WSS v3 or MOSS 2007 can be done via the new content type for . or doing high level creation operations like creating new Web Applications through code. The SPWeb object represents an instance SharePoint Web.What does a SPWebApplication object represent? The SPWebApplication objects represents a SharePoint Web Application. It is known as the “the central class of the Web Part Control Set. and SPWeb object contains things like the actual content.” . . functionality that will occur in WebPartZones.lnk files. . which essentially is an IIS virtual server.

Net. etc. CAML can be used for a variety of circumstances. and domain that you wish to pass when making the web service call and operations.Yes. . In order to build queries with this service. the GUID of the view you are going to query. . view. overall is used to query.When retrieving List items using SharePoint Web Services. There are other ways to do this as well. . which will allow the return of the full content of the list in an XML node. and then using the credentials properties of the Web Service object you use the System. you should use the lists. .asmx web service. The lists. A general use would be building a CAML query in a SharePoint WebPart in order to retrieve values from a SharePoint list. You would iterate through each SPWebApplication in the SPWebApplication collection. but that was how I answered it. and is used for table definition during site provisioning. and why would you use it? CAML stands for Collaborative Application Markup Language. since this is a Web Application level setting.What is CAML.asmx web service by establishing a web reference in Visual Studio. how do you specify explicit credentials to be passed to access the list items? In order to specify explicit credentials with a Web Service. CAML is an XML based language which provides data constructs that build up the SharePoint fields.NetworkCredential class to specify the username. one of the parameters that the GetListItems method exposes is the option to build a CAML query. CAML is responsible for rending data and the resulting HTML that is output to the user in SharePoint. It will take parameters like the GUID of the name of the list you are querying against. Side Question: I got asked how I built queries with the lists. you generally instantiate the web service. and then use the appropriate property calls (OutboundMailServiceInstance) in order to return settings regarding the mail service such as the SMTP address. password.asmx exposes the GetListItems method.How do you return SharePoint List items using SharePoint web services? In order to retrieve list items from a SharePoint list through Web Services. build and customize SharePoint based sites.

Web. It is a helpful directory to use . ones like Category come out of System.WebPartPages.NET 2. Personalizable. and are defined in the SharePoint solution file as things that should be stored in the wpresources directory on the server. and when would you use impersonation? Impersonation can basically provide the functionality of executing something in the context of a different identity. Although most of these properties come from the System. and increase overall experience value with the programmatic assets that you develop without having the need to use an external editor or right any code.0 WebPart? ClassResources are used when inheriting from the SharePoint.Why are properties important in WebPart development.UI. Some of the attributes you see with ASP. and WebBrowsable. that wouldn’t be able to access or execute something.WebControls. A very simple example of exploiting a property would be something like allowing the user to change the text on the WebPart design interface so that they can display whatever string of text they desire.NET control properties.What are ClassResources? How do you reference and deploy resources with an ASP.WebParts class. . that normally.NET 2. they are used to interact with and specify attributes that should be applied to a WebPart by a user. WebDisplayName. . Category. You would use impersonation in order to access resources on behalf of the user with a different account.WebPart.What is impersonation. . WebPart properties make it possible for a user to interact.0 properties are WebDescription.ComponentModel namespace. Each custom property that you have must have the appropriate get and set accessor methods. and what are some of the attributes you see when declaring WebPart properties in code? WebPart properties are just like ASP.WebPart base class. for example assigning an account to users with anonymous access. adjust. 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..What are WebPart properties.

What is a . In ASP.XML. feature definitions (and associated components).ddf file will be passed as a parameter to the MAKECAB utility to orchestrate construction of the SharePoint solution file. typically things such as images are referenced by embedding them as resources within an assembly. . which makes it easier to get . The good part about ClassResources is they can help to eliminate recompiles to change small interface adjustments or alterations to external JavaScript files. etc.0.. The important thing for someone to understand is that the .NET 2.What is a SharePoint Solution File? How does it differ from WebPart .wsp extension that aids in deployment.in order to deploy custom images. . retraction.ddf file is a data directive file and is used when building the SharePoint solution bundle specifying the source files and their destination locations. .cabinet file with all a developers ustom componets suffixed with a .What file does a SharePoint solution package use to orchestrate (describe) its packaged contents? The solution Manifest. The big difference with SharePoint solution files is is that a solution: allows deployment to all WFE’s in a farm is highly manageable from the interface allowing deployment. Can provide Code Access Security provisioning to avoid GAC deployments And much more.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. Webparts. .XML file.ddf file and what does it have to do with SharePoint Solution creation? . This is done in the element in the SharePoint solution manifest. and versioning Can package all types of assets like site definitions.cab files in legacy development? What does it contain? A SharePoint solution file is essentially a .

ParentWeb. You should never dispose SPContext. . This would essentially prevent users from deleting any documents if you wanted to maintain retention of stored data.Web/Site and you should normally not dispose SPWeb if IsRootWeb is true. . both which derive from the abstract base class SPEventReceiverBase. when not? You should always dispose them if you created them yourself.When should you dispose SPWeb and SPSite objects? And even more important. this will be the 'Windows SharePoint Timer Services' identity. . but not otherwise. In a timer job and workflow.RunWithElevatedPrivileges (web context) what credentials are being used? In a web context. Also dispose each web when iterating over SPWeb.web) . you could use a receiver for something as simple as canceling an action.What base class do event receivers inherit from? Event receivers either inherit from the SPListEventReciever base class or the SPItemEventReciever base class. this is the application pool identity.Current. More tricky constructs are things along the line of SPList.When running with SPSecurity. such as deleting a document library by using the Cancel property. how would I go about it? You would on the ItemDeleting event set: properties.When would you use an event receiver? Since event receivers respond to events.Cancel= true. . .assemblies the appropriate permissions in order to operate in the bin directory of the web application.Webs Also dispose SPLimitedWebPartManager's SPWeb property (.If I wanted to not allow people to delete documents from a document library.

What are the data types which are supported as Lookup column in SharePoint. What step(s) should you take to get a stack dump from your web part instead of that error page? Go to the web. PortalSiteMapProvider.how can debugging share point application and timer jobs ? with steps? 1. Only Single Line of Text and Calculated columns are supported as lookup columns.config file for your website and find the CallStack Attribute in the SafeControls element and set the value to true . to disable the web part. . when you deploy to the server you get a page saying your Web Part couldn't be loaded. SPWorkflowLibraryEventReceiver inherits from SPItemEventReceiver.dll into gac and reset iis . and SPWebEventReceiver inherit from the abstract base class SPEventReceiverBase. build application place . .How would you programmatically retrieve a list item? SPQuery and SPSiteDataQuery. SPItemEventReciever. etc..What base classes do event receivers inherit from? SPListEventReceiver. Negative points for use of foreach. .What are the built in ways to backup a SharePoint install? A: Through the central administration and the stsadm command .(more advanced) You've created and deployed a Web Part.What bugs have you found in SharePoint? And what did you do to work around them? . Bonus points for knowledge of CrossListQueryCache.Object. click here to go to the Web Part maintenance page. SPEmailEventReceiver inherits directly from System.

STS is easier to manage and much better for a team environment where there is not much Document Management going on. and with them we can build and integrate many different types of applications. It has check-in. or where Document Management is crucial. or they are very scaled back. etc.In share point also be create custom web part using . 3. go inetpub ->wwwroot->wss->open Your site ->web con fig->create safe control write assembly information of web part application 4.What are the advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)? harePoint Portal Services (SPS) has MUCH better document management.2. 5. SPS is better for an organization. follow few web part in WSS 3. . and can crawl multiple content sources. select W3W. subscriptions. go 12 hive _layout folder create folder past your .oscx control and build application. categories. On the Debug menu. STS cannot. 2.dll file in GAC . approval. publishing. select Attach to Process select the Show processes from all users check box. STS does not have these features.reset IIS. check-out.place .exe can attach refresh sharepoint site point break point . open sharepoint site ->site action-site editing->Galleries ->web part->new Add your web part. create web part project copied . Page Viewer Web Part .oscx control 3.what is web part? Web Parts are the fundamental building blocks for Share Point user interface. versioning.0 Content Editor Web Part Data View Web Part List View Web Part Image Web Part Members Web Part . 4.exe and OSWTIMER.oscx control steps create custom web part 1. SharePoint Portal Services (SPS) has a better search engine.

Sign up to vote on this title
UsefulNot useful