Friday, March 23, 2012

Tricky Interview Questions – SharePoint


Information Architect

This will most likely be someone working for a consultancy company who will be tasked with gathering requirements and defining the goals for the SharePoint deployment. Then following that, defining the architecture for the deployment. This will include a knowledge of areas such as capacity planning, taxonomy, security and governance.

A question to ask this person in interview to test their knowledge is:

Thursday, March 22, 2012

What is a Constructor in C#?


A constructor is a member function that has the same name as the class name and is invoked automatically when the class is instantiated. A constructor is used to provide initialization code that gets executed every time the class is instantiated.

Points to be noted on constructors:

  • Constructors cannot be "virtual".
  • They cannot be inherited.
  • Constructors are called in the order of inheritance.
  • If we don't write any constructor for a class, C# provides an implicit default constructor, i.e., a constructor with no argument.
  • Constructors cannot return any value.
  • Constructors can be overloaded.

The syntax for a constructor is as follows:

[modifier] name (parameters)
{
  // constructor body
}

Wednesday, March 21, 2012

Inheritance & Polymorphism

When you derive a class from a base class, the derived class will inherit all members of the base class except constructors, though whether the derived class would be able to access those members would depend upon the accessibility of those members in the base class. C# gives us polymorphism through inheritance. Inheritance-based polymorphism allows us to define methods in a base class and override them with derived class implementations. Thus if you have a base class object that might be holding one of several derived class objects, polymorphism when properly used allows you to call a method that will work differently according to the type of derived class the object belongs to.

Difference between WCF vs. Web Services (ASMX)

Categories WCF ASMX (Web Services)
Protocols Support
  1. HTTP
  2. TCP
  3. Name Pipes
  4. MSMQ
  5. Custom
  6. UDP
  1. HTTP
Hosting
  1. A WCF component can be hosted in any kind of environment in .NET 3.0, such as a console application, Windows application, or IIS.
  2. WCF services are known as 'services' as opposed to web services because you can host services without a web server.
  3. Self-hosting the services gives you the flexibility to use transports other than HTTP.
Can be hosted only with HttpRuntime on IIS

Tuesday, March 20, 2012

Garbage collection in .NET


.Net is the much hyped revolutionary technology gifted to the programmer's community by Microsoft. Many factors make it a must use for most developers. In this article we would like to discuss one of the primary advantages of .NET framework - the ease in memory and resource management.
Every program uses resources of one sort or another-memory buffers, network connections, database resources, and so on. In fact, in an object-oriented environment, every type identifies some resource available for a program's use. To use any of these resources, memory must be allocated to represent the type.

Monday, March 19, 2012

Caching

What is caching?
High-performance Web applications should be designed with caching in mind. Caching is the technique of storing frequently used items in memory so that they can be accessed more quickly. Caching is important to Web applications because each time a Web form is requested, the host server must process the Web form’s HTML and run Web form code to create a response. By caching the response, all that work is bypassed. Instead, the request is served from the reponse already stored in memory.
Caching an item incurs considerable overhead, so it’s important to choose the items to cache wisely. A Web form is a good candidate for caching if it is frequently used and does not contain data that frequently changes. By storing a Web form in memory, you are effectively freezing that form’s server-side content so that changes to that content do not appear until the cache is refreshed

Abstract class and Interface


Introduction
In this article along with the demo project I will discuss Interfaces versus Abstract classes. The concept of Abstract classes and Interfaces is a bit confusing for beginners of Object Oriented programming. Therefore, I am trying to discuss the theoretical aspects of both the concepts and compare their usage. And finally I will demonstrate how to use them with C#.

Background
An Abstract class without any implementation just looks like an Interface; however there are lot of differences than similarities between an Abstract class and an Interface. Let's explain both concepts and compare their similarities and differences.

What is an Abstract Class?
An abstract class is a special kind of class that cannot be instantiated. So the question is why we need a class that cannot be instantiated? An abstract class is only to be sub-classed (inherited from). In other words, it only allows other classes to inherit from it but cannot be instantiated. The advantage is that it enforces certain hierarchies for all the subclasses. In simple words, it is a kind of contract that forces all the subclasses to carry on the same hierarchies or standards.

 

Sunday, March 18, 2012

UML basics: An introduction to the Unified Modeling Language

A little background

As I mentioned, UML was meant to be a unifying language enabling IT professionals to model computer applications. The primary authors were Jim Rumbaugh, Ivar Jacobson, and Grady Booch, who originally had their own competing methods (OMT, OOSE, and Booch). Eventually, they joined forces and brought about an open standard. (Sound familiar? A similar phenomenon spawned J2EE, SOAP, and Linux.) One reason UML has become a standard modeling language is that it is programming-language independent. (UML modeling tools from IBM Rational are used extensively in J2EE shops as well in .NET shops.) Also, the UML notation set is a language and not a methodology. This is important, because a language, as opposed to a methodology, can easily fit into any company's way of conducting business without requiring change.

The ASP.NET Page Life Cycle

Each time a request arrives at a Web server for an ASP.NET Web page, the first thing the Web server does is hand off the request to the ASP.NET engine. The ASP.NET engine then takes the request through a pipeline composed of numerous stages, which includes verifying file access rights for the ASP.NET Web page, resurrecting the user's session state, and so on. At the end of the pipeline, a class corresponding to the requested ASP.NET Web page is instantiated and the ProcessRequest() method is invoked (see Figure 1).

clip_image002

Figure 1. ASP.NET Page Handling

Saturday, March 17, 2012

Programming with the SharePoint 2010 object model

In this exercise you will create a new console application that programs against the SharePoint Foundation 2010 object model to create new lists and add items to a SharePoint 2010 site. This will illustrate some on the aspects of the SharePoint Foundation 2010 object model as well as show some of the issues about which versions of assemblies to use when you do this type of programming.

1.   If you haven't already done so, you need to run the batch file named LabSetup01.bat to create the site located at http://intranet.contoso.com/sites/Lab01.

2.       Open the browser and navigate to the new site at http://intranet.contoso.com/sites/Lab01/default.aspx. You should see that this new site has been created as a blank site with no existing lists. In the following steps you are going to write a program that uses the SharePoint 2010 object model to create a few new lists in this site and to populate these lists with sample data.

Friday, March 16, 2012

Working with the SharePoint 2010 Ribbon and In-place Editing

In this exercise, you will complete work inside the top-level site of the site collection you created in the previous exercise at http://intranet.contoso.com/sites/Lab01A. You will begin by adding and viewing items inside of some of the lists that are automatically created as part of a new Team site so you can experience the new paradigm for in-place editing. After that, you will work with a Web Part Page so you can experience how the SharePoint 2010 user interface has changed the way users manage Web Parts.

1.       At this point you should be at the home page of the site created in the previous exercise at the URL http://intranet.contoso.com/sites/Lab01A/SitePages/Home.aspx. Note that the home page is not default.aspx but rather a wiki page named Home.aspx located inside a wiki page library named SitePages.

2.       Observe that the page Home.aspx already contains some generic content including large text block at the top of the page which reads "Welcome!". Go into edit mode for the wiki page by clicking the Edit Page menu within the Site Actions menu.

Thursday, March 15, 2012

.NET Remoting – Question and Answers


01. What distributed process frameworks outside .NET do you know?
Distributed Computing Environment/Remote Procedure Calls (DEC/RPC), Microsoft Distributed Component Object Model  (DCOM), Common Object Request Broker Architecture (CORBA), and Java Remote Method Invocation (RMI).

02. What are possible implementations of distributed applications in .NET?  .NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in  System.Runtime.Remoting and System.Web.Services.

03. When would you use .NET Remoting and when Web services?
Use remoting for more efficient exchange of information when you control both ends of the application. Use Web services for     open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else.

Wednesday, March 14, 2012

Creating a Site Collection in SharePoint Central Administration

Exercise 1: Creating a Site Collection in SharePoint Central Administration
In this exercise you will create a new SharePoint site collection using the SharePoint 2010 Central Administration site.

1.  Make sure you are logged in as the local administrator.

2. Navigate to the SharePoint 2010 Central Administration site. You can do this using the shortcut inside the Administrative Tools menu of the Windows Start menu. On this VM you can also get to the SharePoint 2010 Central Administration site by opening the browser and navigating to the following URL:
http://YourServerNameHere:2010/default.aspx

Tuesday, March 13, 2012

Building Collaborative Applications Without Code Using Office SharePoint Designer 2007


Event Overview

Learn how to use Microsoft Office SharePoint Designer 2007 to build productive and efficient solutions on Microsoft SharePoint Products and Technologies. In this webcast, we explain how you can use SharePoint Designer 2007 to create and deploy interactive Web solutions on the SharePoint platform—without writing any code. We also describe how to build reporting and tracking applications and collaborative workflows, and show you how to customize Microsoft Windows SharePoint Services application templates.

Presenter: Rob Mauceri, Principal Group Program Manager, Microsoft Corporation

Sunday, March 11, 2012

Features of the Search Component of Office SharePoint Server 2007


1.    Write the features of the search component of Office SharePoint Server 2007?

The search component of Office SharePoint Server 2007 has been significantly enhanced by this release of SharePoint Products and Technologies. New features provide:
* A consistent and familiar search experience.
* Increased relevance of search results.
* New functions to search for people and expertise.
* Ability to index and search data in line-of-business applications and
* Improved manageability and extensibility.

2.    What are the benefits of Microsoft Office SharePoint Server 2007?


* Provide a simple, familiar, and consistent user experience.
* Boost employee productivity by simplifying everyday business activities.
* Help meet regulatory requirements through comprehensive control over content.
* Effectively manage and repurpose content to gain increased business value.
* Simplify organization-wide access to both structured and unstructured information across disparate systems.
* Connect people with information and expertise.
* Accelerate shared business processes across organizational boundaries.
* Share business data without divulging sensitive information.
* Enable people to make better-informed decisions by presenting business-critical information in one central location.
* Provide a single, integrated platform to manage intranet, extranet, and Internet applications across the enterprise.

3.    Will SharePoint Portal Server and Team Services ever merge?

The products will come together because they are both developed by the Office team.

Office SharePoint Server 2007 & more


1.    Are there any browser recommendations?

Yes. Microsoft recommends using the following browsers for viewing and editing Windows SharePoint Services sites: Microsoft Internet Explorer 5.01 with Service Pack 2, Microsoft Internet Explorer 5.5 with Service Pack 2, Internet Explorer 6, Netscape Navigator 6.2 or later.

2.    What security levels are assigned to users?

Security levels are assigned by the administrator who is adding the user. There are four levels by default and additional levels can be composed as necessary.
* 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.

3.    How secure are Windows SharePoint Services sites hosted by Microsoft?

Microsoft Windows SharePoint Services Technical security measures provide firewall protection, intrusion detection, and web-publishing rules. The Microsoft operation center team tests and deploys software updates in order to maintain the highest level of security and software reliability. Software hot-fixes and service packs are tested and deployed based on their priority and level of risk. Security related hot-fixes are rapidly deployed into the environment to address current threats. A comprehensive software validation activity ensures software stability through regression testing prior to deployment.

Saturday, March 10, 2012

Top 20 Question & Answers SharePoint


1.    What is Microsoft Windows Services?

Microsoft Windows Services is the engine that allows administrators to create Web sites for information sharing and document collaboration. Windows SharePoint Services provides additional functionality to the Microsoft Office System and other desktop applications, as well as serving as a plat form for application development. SharePoint sites provide communities for team collaboration, enabling users to work together on documents, tasks, and projects. The environment for easy and flexible deployment, administration, and application development.

2.    What is the relationship between Microsoft SharePoint Portal Server and Microsoft Windows Services?

Microsoft SharePoint Products and Technologies (including SharePoint Portal Server and Windows SharePoint Services) deliver highly scalable collaboration solutions with flexible deployment and management tools. Windows SharePoint Services provides sites for team collaboration, while Share Point Portal Server connects these sites, people, and business processes—facilitating knowledge sharing and smart organizations. SharePoint Portal Server also extends the capabilities of Windows SharePoint Services by providing organizational and management tools for SharePoint sites, and by enabling teams to publish information to the entire organization.

3.    Who is Office SharePoint Server 2007 designed for?

Office SharePoint Server 2007 can be used by information workers, IT administrators, and application developers.
is designed

SharePoint Basic Question & Answers Part 1


1.    What is SharePoint?

Portal Collaboration Software.

2.    What is the difference between SharePoint Portal Server and Windows SharePoint Services?

SharePoint Portal Server is the global portal offering features like global navigation and searching. Windows SharePoint Services is more content management based with document libraries and lists. You apply information to certain areas within your portal from Windows SharePoint Services or directly to portal areas.

3.    What is a document library?

A document library is where you upload your core documents. They consist of a row and column view with links to the documents. When the document is updated so is the link on your site. You can also track metadata on your documents. Metadata would consist of document properties.