Pages

28 Sept 2012

Design a Classical WebPart


1. Add a reference "System.web"
    Then you will get the following namespaces
    System.Web.UI;
    System.Web.UI.WebControls;
    System.Web.UI.WebControls.WebParts;

2. We should inherit the class from "WebPart" base class

3. WebPart base class contains the methods like CreateChildControls( ) and  
    Render(HTMLTextWriter writer).

    CreateChildControls( ) is a method is useful  to create controls with in a  
    WebPart  and Render( ) method is used for rendering the content on the
    webpage.

4. we can override these two methods







27 Sept 2012

WebPart Notes - Part 1


1.WebParts are highly customizable and reusable components(contains predefined functionality).

2.Webparts can be developed, deployed and that can be used any no of times in sharepoint site.

3.Generally WebParts are used to display the data from various sources like lists, libraries, forms, search results, and other pages.

4.Extension of WebPart is 
  .dwp (in older versions)
  .webpart (in Moss 2007 and SharePoint 2010)

5.WebParts can be placed within WebPart  zones only.

6.WebPart zone is a container control, we can place different types of controls    like
   1. HTML controls
   2. Webserver controls
   3. Webuser controls
   4. Custom controls
   5. Ajax controls
   6. WebParts controls

7.We can place any no of WebParts n a WebParts one and A single page may contain any no of WebPart zones.

8.There are 3 levels in WebParts.
   1. Creating webpart
   2. Deploying webpart
   3. Use the webpart

9.While creating WebParts, we should inherit the class from "WebPart" base 
   class.
   example: class class1 : WebPart
                {

                   // logic here

                 }

10.What is the difference between Normal page and WebPart page?
Normal page does not contain webpart zone, where as webpart page has WebPart zones.


26 Sept 2012

Interview Questions asked by MNC companies



Accenture interview questions:

1)Tell me about your sharepoint experiences ?
2)Did you ever worked in Web Services ? How you called Webmethods ?
3)What type of Webparts you are developed in your current project ?
4)How many ways we can deploy the webpart ? Which is the best method to
   deploy the Webpart ?
5)What are new features in MOSS 2007 ?
6)What are the permission levels in Sharepoint ?
7)What is Sharepoint Object Model ?
8)What are basic building blocks for Sharepoint ?
9)How many types of Event Handlers in Sharepoint ? where did you use  
   these event handlers in your project ?
10)What are the Security levels in Sharepoint ?
11)What is the default authentication level in Sharepoint ?
12)Can we impliment Forms Authentication in Sharepoint or is there any 
     custom Authentication ?
13)What is meant by SignIn ?
14)What is meant by MetaData Cache ?
15)How can you impliment Data Fragment cache ? What is VaryByParam ?
16)When configuring Enterprise Search?

TCS questions:

1)Difference between WSS 2.0 , WSS 3.0 , MOSS 2007 ?
2)Difference between Windows Sharepoint Services and Portal Services ?
3)How to deploy and debug Webparts in Sharepoint ?
4)How can we apply Authentication in MOSS 2007 ?
5)How to use dataview webpart in Sharepoint Designer (SPD) 2007 ?
6)How to customize XSLT code in Dataview Webaprts using Sharepoint 

   Designer (SPD) 2007 ?
7)Which provider is better in Visual Studio ? like OLEDB and Sqlserver .
8)How to integrate Active directory user to public site(internet site)
9)Which Workflow are used in Sharepoint Designer , how can i executed 
   Workflow ? 
10)How can i get List of items in your site using API coding ? 

Value labs questions:

1)How to set forms authentication in your Sharepoint sites ?
2)What Content types used in MOSS 2007?
3)How to create new Templates in Sharepoint Server 2007 ?
4)What is Workflow ? default work flows in sharepoint server ?
5)How can i create new workflows in VS 2005 ? with real time example ?
6)What is Infopath template  ? how can i set browser configuration in 
   Infopath?
7)what is used for browser enabled infopath ?
   how can enable code in your infopath form ?
8)Differences between WSS 3.0 and MOSS 2007 ?
9)How to deploy Webparts in your Sharepoint by using SPD and VS ?
10)How to create Sharepoint solutions ? what is .cab file?
11)How can i set workflow history in sharepoint property ? 


Wipro questions:

1)What is the use of master page? Can you tell me , I want to put the 
   Drop-down control in master page, and this dropdown control should 
   populate the data from database?
2)How can you create and deploy the workflows by using Visualstudio 2005, 
   tell me the step-wise?
3)Can you tell me how to create the HRLeaveapproval workflow by using 
   SPDesinger?
4)What is the use of infopath forms? 
   I have the List called ”Employees”,in that there is a Field called ” 
   Department”, 
   I want to Fill the Department names in the infopathform control 
   (eg: Take the Dropdown control , i want to fill this Department names in 
          Dropdowncontrol )
5)10 users entering the data in infopath forms and submit the data, now i
   want to generate the reports for those 10 users, how can you do this?
6)What is the use of BDC ? 
7)How can you Configure the Enterprise Search?
8)What are the Base class methods you used in developing custom 
   Webparts ?
9)How many ways you can deploy the custom webparts ? with out install in 
   GAC, is there any other way to deploy ?
10)About Execl Services,
11)Feature event receivers Classes?
12)What is the use of “Run with elevated Previliages”?

Technics integration technologies interview questions:

1)What is Feature and its Deployment Types?
2)About WSP builder?
3)What is feature.xml and element.xml?
4)Write a program to enter the items in Sharepoint List?and How to add the  
   Users in your Current Site?
5)What is DDF? and About solution packages?
6)Event Handlers?
7)Search Configuration and Excel Services Configuration in MOSS 2007?
8)What about Service accounts?
9)What are the pillers of sharepoint?
10)Infopath forms?
11)How many ways to create workflows?Which is the best?
12)What is the Base Class of the Webpart? and About Content Edit
    Webparts?
13)About your Project details and roles & responsbilites?
14)What is the Sandbox Solutions?Why we are using that?
15)Migration from MOSS 2007 to Sharepoint 2010?How many types?Which one
    is the best?
16)Authentication Types in Sharepoint 2010?
17)What is  the Alternate Access Mapping?
18)Write a program to retraive the data from all lists in sharepoint?
19)What is the managed path?
20)Difference between Shared Service Provider and Shared Service Application?
21)How to publish the content type in Sharepoint 2010
22)What is the Managed meta data Service?
23)Difference between  list and Library?
24)How to move the list from one site to another site?
25)How to move the data from Development server to Production server?
26)What is the Runwith Elivated Privilliages?
27)Error handling or coding in infopath?
28)How to access the LINQ in Sharepoint 2010?
29)How to deploy Silverlight Webparts?
30)Issues on Migration and How to solve that?

Igate questions:

1)What are the picture Libraries?
2)How can upload multiple pictures?
3)Difference between Sp 2007 ans Sp 2010?
4)How can Configure the SSP in SP 2010?
5)What are the Webservices?
6)Difference beetween form library and document library?
7)Write code to fetch the users in list?
8)Admin Repoting Kit(ARK)?
9)Blob Caching?
10)Search Services in moss 2007 and Sp 2010?

Logica questions:

1)What is the Webpart Development and Deployment in Sharepoint
   2007/2010? How to do Step by Step?
2)What is the Site Definitation? How to do?
3)What is Feature and Feature Stappling?
4)How to generate the WSP in Moss 2007?
5)Difference between Site Definition and Site Template?
6)What is the meaning of Ghosting and Unghosting in Sharepoint?
7)What is the Extend Web Application?When your creating the extend Web
   application,it will store the same database or create any  new database?
8)How to deploy SilverLight Web part in Sharepoint 2010?
9)What is Powershell?Comparision between Stsadm and Powershelll?Which
   one is better?
10)What is IFS(Infopath Form Service).How to publish the Forms to Sharepoint 
    site?
11)Site Pages and Application Pages?
12)Sharepoint Programming.
13)Sharepoint 2010 Architecture.

INTERVIEW QUESTIONS in real time:

1)Tell me the sharepoint execution process?
2) What is the necessary file in modifying the masterpage?
3) What is content type? and what is the use?
4) How many content types in sharepoint?
5) How to modify column name in custom list?
6) what are the webpart's u developed?
7) what is the advantages of sharepoint designer?
8) How to build webpart? what is the necessary file we want?
9) What is wsp? How to create .wsp file? what we want to build wsp file?
10)how to use master page in sharepoint?
11)How can u deploy the webpart to sharepoint gallery?
    Sub question : ( I don’t want to put the assembly in GAC i want that is as  
    a private assembly )
    Why it s necessary to mention that is a safecontrol ? 
12)How to crate & place themes in Share point sites?
13)How can u call the custom CSS in Share point?
14)How many types of permissions in Share point?
15)How to change the default date format (mm/dd/yyyy) to jan-01-2008?
16)Explain BDC? Why to go for BDC?
17)In how many ways backup and restore the SharePoint site?
18)What is Audience targeting?
19)Can u write the code to copy the existing list to another list?
20)What is the use of STSADM tool?
21)How to create & delete list using object data model?
22)Did u create any workflows in ur project ? what are the workflows u created 
    (and either by using sharepoint designer or visual studio)
23)Difference between Sequential workflow and state machine Workflow ?
24)How do u debug the workflows ( how do u handle exceptions) ?
25)Can we generate the strong name key to private assembiles ?
26)How can u deploy the webpart to sharepoint gallery?
    Sub question : ( I don’t want to put the assembly in GAC i want that is as 
                           a private assembly )
27)Why it s necessary to mention that is a safecontrol ?


SharePoint 2010 Basic Interview Questions-Part 5


81) What is a SharePoint list?
       Everything is stored in SharePoint in form of List. They are similar to 
      database. List have item, fields and Views. Items are like a row in a   
      table. Fields are like columns in a database table. Views displays 
      information from List.
      How to create a SharePoint List in browser in SharePoint 2010?

     To create a SharePoint 2010 list go to Site Actions ---> then click on More 
     ---> Then you can select the type of list you want to create including 
     custom list also.

82) What is the dot net framework version supported by SharePoint 
       2010?
       SharePoint 2010 supports .net framework 3.5 and 3.5SP1.

83) SharePoint 2010 supports which versions of IIS?
       SharePoint 2010 supports IIS 7.x means IIS 7.0, IIS 7.5 etc

84) Which versions of SQL Server supported by SharePoint 2010?
       SharePoint 2010 supports SQL Server 2005 SP3 or SQL Server 2008/R2, but 
      both should be 64 bit version.

85) What is the use of SharePoint_Config database?
       SharePoint 2010 uses SharePoint_Config database to store farm 
      configurations and contents. This database gets automatically created 
      whenever you deploy the farm for the first time.

86) What is a Content database?
       SharePoint 2010 uses content database to stores content for one or more 
      Site Collections. Content can be items, documents, documents versions, 
      pages, images etc.
      You can deploy multiple Content Databases for a single web application.

87) What are different SharePoint editions?
       There are different editions like: Microsoft SharePoint Foundation 2010, 
      Microsoft SharePoint Server 2010 Standard edition, Microsoft SharePoint 
      Server 2010 Enterprise edition, Microsoft SharePoint Server 2010 for  
      Internet Sites 
      Standard editions, Microsoft SharePoint Server 2010 for Internet Sites 
      Enterprise editions.

88) What is the work of SPVirtualPathProvider?
       SPVirtualPathProviders is responsible for determining whether the 
      requested content should be retrieved from the content database or from
      the file system.

89) What are the SharePoint objects we can work in Visual Studio 2010?
       Visual Web Part, Sequential Workflow, State Machine Workflow, Event 
      Receiver, List Definition, Content Type, Site Definition, Application Page, 
      User Control etc.

90) What are the things we can do using SharePoint designer 2010?
       We can Personalize pages, page layouts, Web Parts, Web Part Pages, 
      layouts and themes, master pages, Create and manage lists and 
      document libraries, Manage users and groups, Design simple workflows 
      etc.

91) What are the main capabilities of SharePoint 2010?
       The main capabilities of SharePoint 2010 includes Sites, Communities, 
      Content, Search, Insights and Composites.

92) What is the work of SharePoint 2010 central administration?
      SharePoint 2010 central administration work: Application Management, 
      Monitoring, Security, General Application Settings, System Settings, 
      Backup and Restore, Upgrade and Migration, Configuration Wizards etc.

93) What is a SharePoint Farm?
       A SharePoint farm is a set of one or more server computers working 
      together to provide SharePoint Foundation functionality to clients.

94) What is a service applications in SharePoint 2010?
       Service applications are used to facilitate sharing resources across sites 
      running in different Web applications and different farms. Basically 
      SharePoint 2010 replacing SSP of MOSS 2007 in the form of Service 
      applications.

95) What is a Site in SharePoint?
       This is very difficult to define:
      A site is also a storage container that allows users to store and manage
      content such as list items and documents.

96) What are the default lists available in a Team site?
       A team site has 4 default list and that are: Announcements, Calendar, 
      Links, and Tasks lists.

97) What is a recycle bin in SharePoint?
       Whenever you will delete something it goes to recycle bin in SharePoint.
      You can restore items that have been deleted from the site  from the 
      recycle bin.

98) What to navigate to Site Settings page in SharePoint 2010?
       From the home page, click on Site Actions -> Site Settings.

99) How to go to master page gallery in SharePoint 2010?
       To go to master page gallery in SharePoint 2010 go to Site Actions ---> 
      Site Settings. It will open the site settings page, then in the settings 
      page Go to Galleries section and click on Master pages.

100)How to change theme in SharePoint 2010?
        Changing the default theme is very easy in SharePoint 2010. Go to Site 
       Actions ---> Site Sections --->Then go to Galleries and click on Theme 
       link. It will open the Change Theme home page and from there you can 
       select any theme you want.

101)What is a feature in SharePoint?
        SharePoint feature groups custom functionality that developers and 
      administrators can activate.

102)What are the feature activation scope in SharePoint?
        A feature can activated in Farm level, Web Application level, Site 
      Collection level & Site level.

25 Sept 2012

SharePoint 2010 Basic Interview Questions-Part 4


61) What is a workspace?
      A site or workspace is when you want a new place for collaborating on 
      Web pages, lists and document libraries. For example, you might create a 
      site to manage a new team or project, collaborate on a document or 
      prepare for a meeting.

62) 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.

63) Can more than one person use the same login?
       If the users sharing that login will have the same permissions and there 
      is no fear of them sharing a password, then yes. Otherwise, this is 
      discouraged.

64) How customizable is the user-to-user access?
       User permissions apply to an entire Web, not to documents themselves. 
      However, you can have additional sub webs that can optionally have their
      own permissions. Each user can be given any of four default roles. 
      Additional roles can be defined by the administrator.

65) Can each user have access to their own calendar?
       Yes there are two ways to do this,
* by creating a calendar for each user, or
* by creating a calendar with a view for each user

66) How many files can I upload?
       There is no restriction in place except that any storage consumed beyond 
      that provided by the base offering may have an additional monthly charge 
      associated with them.

67) What types of files can I upload / post to the site?
        The only files restricted are those ending with the following extensions: 
       .asa, .asp, .ida, .idc, .idq. Microsoft reserves the right to add additional 
       file types to this listing at any time. Also, no content that violates the
       terms of service may be uploaded or posted to the site.

68)  Can SharePoint be linked to an external data source?
        SharePoint data can be opened with Access and Excel as an external data 
       source. Thus, SharePoint can be referenced as an external data source. 
       SharePoint itself cannot reference an external data source.

69) Can SharePoint be linked to a SQL database?
       This is possible via a custom application, but it not natively supported by 
      SharePoint or SQL Server.

70) Can I customize my Windows SharePoint Services site?
       YES! Windows SharePoint Services makes updating sites and their content 
      from the browser easier then ever.
      SharePoint includes tools that let you create custom lists, calendars, page 
      views, etc. You can apply a theme; add List, Survey and Document Library 
      WebParts to a page; create personal views; change logos; connect 
      WebParts and more.
      To fully customize your site, you can use Microsoft FrontPage 2003. 
      Specifically, you can use FrontPage themes and shared borders, and also 
      use FrontPage to create photo galleries and top ten lists, utilize standard 
      usage reports, and integrate automatic Web content.

71) Will Microsoft Office SharePoint Server 2007 run on a 64-bit version of 
       Microsoft Windows?
       Windows SharePoint Services 3.0, Office SharePoint Server 2007, Office 
      Forms Server 2007, and Office SharePoint Server 2007 for Search will 
      support 64-bit versions of Windows Server 2003.

72) What are the advanced features of MOSS 2007?
       * User Interface (UI) and navigation enhancements
      * Document management enhancements
      * The new Workflow engine
      * Office 2007 Integration
      * New Web Parts
      * New Site-type templates
      * Enhancements to List technology
      * Web Content Management
      * Business Data Catalog
      * Search enhancements
      * Report Center
      * Records Management
      * Business Intelligence and Excel Server
      * Forms Server and InfoPath
      * The “Features” feature
      * Alternate authentication providers and Forms-based authentication

73) What are the actual advantages of SharePoint Portal Services (SPS) 
       over SharePoint Team Services (STS)?
       SharePoint Portal Services (SPS) has MUCH better document management. 
      It has check-in, check-out, versioning, approval, publishing, subscriptions,
      categories, etc. STS does not have these features, or they are very scaled 
      back. SharePoint team Services (SPS) has a better search engine, and can
      crawl multiple content sources. STS cannot. STS is easier to manage and 
      much better for a team environment where there is not much Document 
      Management going on. SPS is better for an organization, or where 
      Document Management is crucial.

74) How Does SharePoint work?
      The browser sends a DAV packet to IIS asking to perform a document   
      check in. PKMDASL.DLL, an ISAPI DLL, parses the packet and sees that it 
      has the proprietary INVOKE command. Because of the existence of this 
      command, the packet is passed off to msdmserv.exe, who in turn 
      processes the packet and uses EXOLEDB to access the WSS, perform the 
      operation and send the results back to the user in the form of XML.

75) What newsgroups are available?
       There are two,
* microsoft.public.sharepoint.portalserver and
* microsoft.public.sharepoint.portalserver.development.

76) What is SharePoint?
      Microsoft often defines SharePoint as a business collaboration platform.
      In other way its is also a rich  framework for developing business 
      collaboration solutions. SharePoint is a platform for building websites,
      both intranet and internet web sites.
      It is a collaboration platform for users, customers or whoever using the
      SharePoint web site.

77) What is the menimun software and hardware requirements to install 
       SharePoint 2010? 
      Operating System: Microsoft Windows Server 2008 or Microsoft Windows 
      Server 2008 R2, but for  development purpose you can install SharePoint 
      2010 on Windows 7 and Microsoft Windows Vista SP1/SP2. All operating 
      system should be 64 bit. 

      Database: SharePoint 2010 requires database of Microsoft SQL Server 
      2005 SP3 or Microsoft SQL Server 2008 or R2. Also all should be 64bit.
      Application Server: SharePoint 2010 requires IIS7 +.

       .Net Framework: SharePoint 2010 requires Microsoft .NET Framework 3.5
      and SP1 is preferable. 

77) What are SharePoint 2010 main features?

        Sites: Ribbon UI, SharePoint Workspace, SharePoint Mobile etc.
  
        Communities: Tagging, Tag Cloud, Rating, Social Networking feature, 
       My Sites, Blogs and Wikis, My Profile etc.

       Content: Enterprise content type, Metadata and navigation, Document 
       sets, Remote BLOG Storage, Audio and Video Content types, List 
       Enhancements etc.

       Search:FAST Search integration, Social Relevance.

       Insights: Excel services, Visio services, web analytics, SQL server 
       integration etc.

        Composites: Business Connectivity Services, Info path form services, 
       External lists, Workflows, SharePoint designers, Visual studio, REST etc.

78) What is SharePoint Central Administration?
      This is designed to administer and monitor a SharePoint server farm. Here 
      you can configure servers and servers’ roles, define farm topology, and 
      create new web applications and Site Collections. This basically a 
      SharePoint site. The main features included here are: Application 
      Management, Monitoring, Security, General Application Settings, System 
      Settings, Back Up and Restore, Upgrade and Migration and Configuration 
      wizard.
                                                                                                                                                                                                
79) What is a Site collection and Web application?
      A Site Collection is a logical container that holds a set of websites, 
      hosted in a web application. If you want to publish internet or intranet 
      web site then you need at least a web application and one site collection.
      To create a new Site Collection we need a parent web application.

80) What are the site templates available in SharePoint?
      There are 5 different site templates available in SharePoint 2010, from 
      which you can create sites. And They are:

       Collaboration: It has templates for Team Site, Blank Site, Document 
      Workspace, Blog, Group Work Site etc.

      Meetings: It has templates for Basic Meeting Workspace, Blank Meeting 
      Workspace, Decision Meeting Workspace, Social Meeting Workspace, and 
      Multipage Meeting Workspace.

      Enterprise: It has templates for Document Center, Records Center,  
      PowerPoint Broadcast Site, Business Intelligence Center, Enterprise 
      Search Center, My Site Host, Basic Search Center, and FAST Search 
      Center.

      Publishing: It has templates for Publishing Portal and Enterprise Wiki 
      Custom: Here you can define your own custom templates.