Feeds:
Posts
Comments
  1. OnInit event used to create controls of web part
  2. CreateChildControls event used to set properties and default values
  3. OnPreRender event used to set up business logic related work and in this routine controls value kept by viewstate
  4. Render event used to create HTML and write that HTML on web page
Advertisements

?

Web part(s) used to give consistent, easy to navigate, easy customization and personalization. Web parts can divide web page into multiple parts like you want your page to show different inter-related features like entertainment news, weather news, sports news, business news.

There are 3 types of web parts.

  1. asp.net web part (inherit from asp.net 2.0+ web part class,  imported via .webpart file)
  2. windows sharepoint services WSS web part (inherit from WSS web part class, imported via .dwp file)
  3. hybrid web part (inherit from WSS web part class, imported via, .webpart file, take advantage of WSS and asp.net web part features)

How to create custom web part for sharepoint?

  1. Create a class library type of project in Visual studio
  2. Inherit Class from System.Web.UI.WebControls.WebParts.WebPart after adding System.Web assembly reference
  3. Override method(s) like OnPreRender,  RenderContents
  4. Compile/Build your class library project into C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN
  5. Configure DLL into web.config (probably would be in C:\Inetpub\wwwroot\wss\VirtualDirectories\46388) and give reference into SafeControl List of your Web part (assembly, namespace,  Typename)
  6. Go back to site collection, click on Site Action menu to expand at top right and then click on Site Settings.
  7. Click on Web Part Gallery and get Web part gallery page
  8. Click on New button and get New Web Parts page
  9. Check your web part (namespace, typename) and click on Populate Gallery button
  10. Go back to Site collection page where you want to add your web part
  11. Click on Site Actions menu and then select Edit Page
  12. Click on Add web part and get list of installed web parts in popup
  13. Select yours and enjoyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy!

is it more difficult than ROCKET SCIENCE.

recommended link : http://www.codeproject.com/KB/sharepoint/WebPartIntro.aspx

Its not like that, You open Shaerpoint Central Administration, and could provision (create) web site. You need to follow hierarchy/architecture which is :

  1. Create Web application (root level application)
  2. Create Web site collection (to distinguish your site into multiple departments/categories like accounts, inventory, admin, … and to make administration easy)
  3. Create web site (like your site has wiki, document library web site, shopping cart).

Web application can contain multiple web site collection and web site collection can create multiple web sites in it. Web sites contains web pages/web parts.

for better understanding of this topic m gonna make last try 😀

consider http://www.microsoft.com as web application

http://www.microsoft.com/accounts

http://www.microsoft.com/HR

here accounts and HR are web site collections

http://www.microsoft.com/accounts/Reports

http://www.microsoft.com/HR/CRM

here Reports and CRM are web sites

http://www.microsoft.com/accounts/Reports/GeneralLedger.aspx ,,,,, http://www.microsoft.com/accounts/Reports/BalanceSheet.aspx

http://www.microsoft.com/HR/CRM/AddCustomer.aspx

here GeneralLedger.aspx, BalanceSheet.aspx and AddCustomer.aspx are web pages

i think, i did good job to clarify 😉

Introduction

Sharepoint based upon asp.net and used to provide paper-less environment. Sharepoint comes with its own administration panel which divides into two sections namely Operations and Application Management.

Operations

This page contains links to pages that help you manage your server or server farm, such as changing the server farm topology, specifying which services are running on each server, and changing settings that affect multiple servers or applications.

Application Management

This page contains links to pages that help you configure settings for applications and components that are installed on the server or server farm. Application management used to manage web application, site collection, site(s), web form/pages, web part(s).

First of all, I would like to talk about some essentials things about sharepoint technologies.

1. Sharepoint Services
2. Microsoft Office Sharepoint Server
3. Sharepoint Designer

Sharepoint Services:

Sharepoint services based upon asp.net and as name implies it’s services components used to serve. It comes with few basic but powerful componets. If you want more components and wanted to utilize maximum power of sharepoint then you need to have Microsoft Office Sharepoint Server which based upon Sharepoint Services.

Sharepoint services comes with following components

1. Provisioning (site creation)
2. Administration (site admin)
3. Page and User Interface (master page, ascx, menus, treesview, navigational)
4. Security (Roles, Membership,…)
5. Data Management (manage content, data, documents)
6. Information Services (e-mail, e-mail alert notifications, search)
7. Web Parts (Portlets, Page modules)
8. Workflow (manage tasks flow)

Microsoft Office Sharepoint Server (MOSS)

MOSS based on Sharepoint Services and has some extra components which really enrich/enpower Sharepoint Technologies.

Portals (Make easy to build portals)
Enterprise search (extensive and extensible content gathering, indexing, and querying ability)
Business Intelligence (Utilize excel, outlook, wordprocesser,.. services)
Collaboration and Social Computing (WIKI, RSS, Blogs,…)
Business Process and Forms (provides built-in electronic forms and workflow templates)
Enterprice Content Management System (ECM used to manage high volume of unstructured contents)

Microsoft Office Sharepoint Designer (MOSD)

Developer tool to customize, develop sharepoint based contents/components like webparts, web pages, workflows,…. It provides WYSIWYG which provides precise rendering of XHTML , CSS and ASP.NET Technologies.

After blogging on RealFantasy.wordpress.com and weblogs.asp.net/MuhammadAdnan . I am going to start my experiences of sharepoint services, microsoft sharepoint server aka MOSS and sharepoint designer.

Hope you like and could get some informative stuff from this platform.

happy sharepointing 😀