Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Tuesday, March 1, 2011

Web Part Life Cycle


Web Part Life Cycle 
  • OnInit
  • LoadViewState
  • CreateChildControl
  • Onload
  • usergenerated Event
  • onpreRender
  • RenderControl
  • SaveViewState
  • Dispose
  • Unload

OnInit 

 Configuration values set using WebBrowsable properties 

LoadViewState – 

The view state of the web part is populated over here.'

CreateChildControls 

All the controls specified are created and added to controls collection. When the page is being rendered for the first time the method generally occurs after the OnLoad() event. In case of postback, it is called before the OnLoad() event. We can make use of EnsureChildControls() - It checks to see if the CreateChildControls method has yet been called, and if it has not, calls it.

OnLoad

User Generated Event 

for e.g. button click on the web part.

OnPreRender 

Here we can change any of the web part properties before the control output is
drawn.

RenderContents 

 Html Output is generated.

SaveViewState 

 View state of the web part is serialized and saved.

Dispose

UnLoad.

Custom Feature

Create xml file named feature.xml and its manifest file. save file to  12- hive \template\feature. 


How to install  feature file?

Go to command prompt, navigate 12- hive bin folder & run the command. 

Stsadm -0 installfeature –filename <filelocation+name> 

How to  Activate  feature?
 
Go to command prompt, navigate 12- hive bin folder & run the command. 

Stsadm -0 activefeature –name <name> -url <url> 

How to Deactivate feature?
 
Go to command prompt, navigate 12- hive bin folder & run the command. 

Stsadm -0 deactivefeature –name <name> -url <url> 

How to uninstall  feature?

Go to command prompt, navigate 12- hive bin folder & run the command. 

Stsadm -0 uninstallfeature –filename <filelocation+name>

Sharepoint Architecture

We have 3 layer architecture

WFE <Front End Web Server> 
2. Application Layer 
3. Data base Layer 


1. WFE 

share point Installed. 
12-hive structure & virtual drives. 
IIS web sites are hosted. 
servers are clustered on & are in synch. 

2. Application Layer

Share Point provides different services. 
This layer provides those services, like my site hosting, user profile & searching etc. 
One server can be dedicated to particular service depend upon the scalability. 

3. Data Base Layer 

Here we have SQL server installed. 
Here content DB is hosted. 
For moss 2007, it is SQL server 2005. For Share Point 2010, it is SQL server 2008. 
Here servers are clustered on & are in synch. 

* Every layer has load balancer for control the traffic.

How to Deploy WSP file?

In command promt Navigate to 12 hive  Folder after write Commant line

STSadm -o addsoultion -filename filelocation

Then go to "central administration -> operations" under "global configuration" there is "solution management" click on that.




Then click on "wsp file name", and then click on "deploy solution" for deploy it, for retrieve click on "retrieve solution", for remove it click on "remove solution" after retrieve it.

--
J.SuThahar MCA 
MicroSoft Technology Specialist
Microsoft Certified ProfessionalDeveloper
www.jsuthahar.tk
09943151415

Monday, February 21, 2011

SharePoint Training Module

SharePoint Administration
Module 1: SharePoint Overview
  • What is SharePoint?
  • What are the editions of SharePoint?
  • WSS vs SharePoint 2007 Standard vs SharePoint 2007 Enterprise
  • Pre-requisites for Installation
  • Installation Steps and getting a sample SharePoint environment installed on your computer using Virtual PC or VMWare
Module 2: SharePoint Central Administration
  • Operations Tab
  • Application Management tab
  • Enabling Search Services
  • Creating a Shared Services Provider (SSP) for running Shared Services – like Search and User Profiles
  • Search Administration
  • User Profiles Administration
  • Web Application -> Site Collection -> Sites hierarchy
  • Creating your first Web Application
  • Creating your first Site Collection
  • Creating multiple Sites under a single Site Collection
Module 3: SharePoint Site Collection, Site Settings, Libraries and Lists
  • Exploring Site Settings options of a Site Collection
  • Libraries and Lists Available
  • Document Library Options (New Document, Upload, Actions)
  • Versioning
  • Check In and Check Out
  • Content Types
  • Creating Custom Content Types and Attaching to the new Menu
  • Using In-built workflows (Approval, Feedback, Signature)
  • Creating Multiple Views
  • Creating Filters, Sorting and Grouping
  • Connecting to Outlook
  • Calendars and Connecting to Outlook
  • Side by Side Mode and Overlay Mode in Outlook
  • Recycle Bin
  • Saving List and Library as Templates and Creating new Content from them
  • WebParts Overview and Inbuilt Web Parts available
  • Creating a sample page and adding few Web Parts
Module 4: Collaboration
  • Events and Announcements
  • Discussion Forums
  • Surveys
  • Blogs
  • Wikis
  • My Sites
Module 5: SharePoint Security
  • Security Model of SharePoint
  • Security for your Site Collections
  • Inbuilt Groups
  • People and Groups
  • Site Permissions
  • Permissions Inheritance for Sub Sites
  • Library, List and Item Level Permissions
Module 6: Adding PDF iFilter and Search
  • Installing and Adding PDF Search Features
  • Search Functionality Demonstration
  • Basic, Advanced Search and People Search
Module 7: Exploring other Site Templates
  • Creating Enterprise Site Templates
  • Publishing Portal, Records Center, Search Center and other Templates
  • Understanding the difference between various templates
Module 8: Administrative Functions
  • Audit Trail
  • Usage Analysis Processing
  • Backing Up and Restore
  • StsAdm Commands and Common Use

Sharepoint  Development


Module 1: SharePoint Development Overview
  • Why Customize?
  • Areas where SharePoint requires Customization
  • Introduction to Visual Studio 2008 SharePoint Project Templates
  • Introduce SharePoint Object Model and SharePoint Web Services
  • Introduce Web Parts
  • Introduce Event Receivers
  • Introduce Features and Solutions
  • Introduce Custom ASPX Pages
  • Introduce Workflows using SharePoint Designer and Visual Studio
  • Introduce Custom Fields Creation
  • Introduce Areas where Javascript based Customized can be done
  • Introduce SharePoint Designer
Module 2: SharePoint Object Model
  • Ways to programmatically access SharePoint
  • SharePoint Object Model vs SharePoint Web Services
  • Creating your first Console Application using SharePoint’s Object Model
  • Accessing a List Programmatically and Managing Items
  • Accessing a Document Library Programmatically and Managing Items
  • Moving Document from One site to another using the Object Model
Module 3: Web Parts
  • In-built Web Parts
  • Creating and Deploying your first web part outside Visual Studio
  • Creating and Deploying from Visual Studio
  • Rendering Controls inside the Web Part
  • Using an ASCX inside a Web Part
  • Accessing external database and displaying records in a Web Part
Module 4: Event Receivers
  • Purpose of Event Receivers
  • Item event Receiver
  • List event Receiver
  • Performing actions while Item is being added, updated or deleted
  • Performing List level actions based on various events
Module 5: Features and Solutions
  • SharePoint and Features
  • Site Collection Features vs Site Features
  • Feature Installation, Activation and Deactivation
  • Developing a Site Collection Feature
  • Developing a Site Feature
  • Feature.xml and Elements.xml
  • Packaging multiple features into Solutions
  • Deploying Solutions
  • Using tools like WSP Builder
Module 6: Custom ASPX Pages
  • The Layouts folder
  • Creating and Deploying Custom ASPX Pages that run inside SharePoint environment
  • When to use Custom ASPX Page and when to use a Web Part
Module 7: Custom Fields
  • When to create Custom Fields inheriting from SPField Class
  • Creating your first custom Field
  • Creating a Custom Field that does a Cross Site Lookup
  • Deploying the Custom Field
Module 8: JavaScript and SharePoint
  • Uses of Javascript based Scripting inside SharePoint Pages
  • Custom Alerts and Messages using Javascript
  • Performing certain validations using Javascript
Module 9: Custom Workflows
  • Inbuilt Workflows vs Custom Workflows
  • Custom Workflows using SharePoint Designer
  • Custom Workflows using Visual Studio
  • Sequential Workflow
  • Statechart Workflow
  • Simulating a real business process in a Visual Studio Workflow
Module 10: SharePoint Designer
  • SharePoint Designer Features
  • Customizing the Look and Feel of SharePoint Sites using Designer
  • Customizing Master Pages
  • Customizing Sub Pages
  • Creating other SharePoint Page components using SharePoint Designer