SlideShare a Scribd company logo
Developing Web Applications Using ASP.NET
Objectives


                In this session, you will learn to:
                   Describe a Web Part and the purpose of Web Parts
                   Describe the components of a Web Part page and identify
                   scenarios when Web Part pages are useful features of Web
                   applications
                   Describe the more advanced features of Web Parts, including
                   connections between Web Parts
                   Create Web Part pages
                   Create Web Parts




     Ver. 1.0                                                          Slide 1 of 17
Developing Web Applications Using ASP.NET
What is a Web Part?


                In an application that has been built using Web parts, a user
                can rearrange the components on a page, remove
                components from a page, or add components from a
                catalog.
                Web parts appear on the page as discrete sections with
                their own distinct user interface and functionality.
                A Web part can display data from various sources.
                Each Web part has a set of verbs, which are actions that the
                user can take.
                Verbs appears as links or buttons on a Web part.




     Ver. 1.0                                                        Slide 2 of 17
Developing Web Applications Using ASP.NET
What is a Web Part? (Contd.)


                A page that is implemented by using Web parts allows
                customization of the appearance and contents of the page
                by allowing a user to:
                   Remove Web parts
                   Add Web parts from a catalog
                   Rearrange Web parts
                   Minimize Web parts
                   Change the appearance of Web parts
                Web parts also enable users to personalize Web part
                properties such as:
                • Region property of a Weather Report Web part.
                • Industry property of a Stock Quotes Web part.
                • Pages collection in a Web Traffic Web Part.



     Ver. 1.0                                                      Slide 3 of 17
Developing Web Applications Using ASP.NET
What is a Web Part? (Contd.)


                A user can add a new Web part to the page by using the
                Web parts catalog.
                The Web parts catalog displays a list of all available Web
                parts that are not already on the page.
                A user can select a Web part from the catalog to add it to
                the display.
                When a user removes a Web part from the page, it
                reappears in the catalog.




     Ver. 1.0                                                        Slide 4 of 17
Developing Web Applications Using ASP.NET
Web Part Controls


                The Web parts control set is extensive, but some controls
                are essential.
                A developer needs to be familiar with the following Web part
                controls to create a basic Web part page:
                   WebPartManager
                   CatalogZone
                   EditorZone
                   WebPartZone
                   ConnectionsZone
                   GenericWebPart
                   CatalogPart
                   Connection
                   EditorPart


     Ver. 1.0                                                        Slide 5 of 17
Developing Web Applications Using ASP.NET
What is Web Part Page?


                •   Many of the advanced capabilities that Web parts provide
                    are enabled by the Web part pages on which the Web part
                    is placed and do not work on ordinary ASP.NET Web Form
                    pages.
                •   Every Web part page contains one or more zones.
                •   The purpose of a zone is to contain Web parts, to organize
                    them, and to provide elements of the user interface.
                •   Each zone can be oriented horizontally or vertically.
                •   Every Web part must include a WebPartManager object.
                •   The WebPartManager object is an invisible object that
                    performs a number of essential tasks on the page, such as:
                       Tracking the Web parts on the page
                       Tracking the zones that contain Web parts
                       Tracking the order of Web parts in the zone

     Ver. 1.0                                                          Slide 6 of 17
Developing Web Applications Using ASP.NET
Web Part Page Display Modes


                •   A Microsoft ASP.NET Web Parts page can enter several
                    different display modes.
                •   A display mode is a special state that applies to an entire
                    page, where certain user interface elements are visible and
                    enabled, while others are invisible and disabled.
                •   Display mode enables users to perform certain tasks to
                    modify or personalize a page.
                •   A page can be in only one display mode at a time.
                •   The WebPartManager control contains the
                    implementations for the display modes, available in the Web
                    parts control set and manages all display mode operations
                    for a page.



     Ver. 1.0                                                           Slide 7 of 17
Developing Web Applications Using ASP.NET
Web Part Page Display Modes (Contd.)


                •   Display mode of a page can be changed programmatically
                    by using the DisplayMode property.
                •   There are five standard display modes in Web Parts control
                    set:
                       Browse
                       Design
                       Edit
                       Catalog
                       Connect
                •   All the display modes are derived from the
                    WebPartDisplayMode class.




     Ver. 1.0                                                          Slide 8 of 17
Developing Web Applications Using ASP.NET
Connected Web Parts


               •   Web part connections provide a route to transmit and
                   receive information among Web parts, in case they need to
                   work together.
               •   A Web part can be connected to another Web part by using
                   connection points.
               •   When two Web parts are connected, one of them acts as a
                   data provider and the other acts as a data consumer.
               •   A connection point is an instance of a
                   ConnectionPoint-derived class.
               •   A connection point can be created by using:
                   • ConnectionConsumerAtribute class
                   • ConnectionProviderAttribute class




    Ver. 1.0                                                         Slide 9 of 17
Developing Web Applications Using ASP.NET
Connected Web Parts (Contd.)


                •   A custom connection point can be created by inheriting from
                    the ConnectionPoint class; or by inheriting from
                    ConnectionConsumerAtribute class or
                    ConnectionProviderAttribute class.
                •   A control acting as either a consumer or a provider can
                    have multiple connection points.
                •   Connections between controls in a Web Parts zone can be
                    of two types:
                       Static
                       Dynamic




     Ver. 1.0                                                          Slide 10 of 17
Developing Web Applications Using ASP.NET
Connected Web Parts (Contd.)


                When creating a connection:
                   A control acting as a data provider defines a communication
                   contract indicating the data it can provide.
                   Another control, acting as the consumer and with the
                   knowledge of the communication contract , retrieves the data.
                Connections between controls in a Web parts zone use a
                communication contract in the form of an interface.




     Ver. 1.0                                                            Slide 11 of 17
Developing Web Applications Using ASP.NET
Connected Web Parts (Contd.)


                Personalizing Connections:
                   When you enable Connection Display mode for a Web part
                   page, you enable users to customize and save the connections
                   according to their preference.
                   When a page is in the Connection Display mode:
                      The Connections Zone is displayed to the user.
                      A user can use the Connections Zone to join connection points and
                      route data from one Web part to another.




     Ver. 1.0                                                                Slide 12 of 17
Developing Web Applications Using ASP.NET
Connected Web Parts (Contd.)


                Transformers:
                • Data can be reformatted when it is passed between Web parts
                  by using a transformer.
                • Several transformers are included in ASP.NET 2.0 such as
                  System.Web.UI.WebControl.WebParts.
                  RowToFieldTransformer.
                • A custom transformer can be created by inheriting from the
                  WebPartTransformer class.




     Ver. 1.0                                                        Slide 13 of 17
Developing Web Applications Using ASP.NET
Demo: Building Web Part Pages and Web Parts


                Problem Statement:
                   You are a developer in the Adventure Works organization, a
                   fictitious bicycle manufacturer. You have been asked to assist
                   in creating a new Business-to-Consumer (B2C) Web
                   application and a related Business-to-Employee (B2E) extranet
                   portal.
                   Decisions on the design of the application have already been
                   made. You have been asked to carry out a number of specific
                   tasks in order to implement various elements of this design. As
                   part of the B2C development, you have been asked to
                   prototype a Web Part Page for employees’ extranet portal.




     Ver. 1.0                                                            Slide 14 of 17
Developing Web Applications Using ASP.NET
Demo: Building Web Part Pages and Web Parts (Contd.)


                Solution:
                 • To solve this problem, you need to perform following tasks:
                    1. Create a Web Part Page
                        a. Open the starter solution.
                        b. Manage roles for the employee portal
                        c. Start SQL Express
                        d. Add the employee portal Web page
                        e. Add Web Part framework controls and a layout to the employee portal
                           Web page
                        f. Add mode-switching capabilities to the portal page




     Ver. 1.0                                                                        Slide 15 of 17
Developing Web Applications Using ASP.NET
Demo: Building Web Part Pages and Web Parts (Contd.)


                1. Create a Web Part
                    a.   Add and develop a User Control.
                    b.   Add and configure the User Control as a Web Part.
                    c.   Test the portal.aspx page.
                    d.   Test the Web Part Page personalization behavior.




     Ver. 1.0                                                                Slide 16 of 17
Developing Web Applications Using ASP.NET
Summary


               In this session, you learned that:
                  ASP.NET Web Parts give the developer a way to support
                  extensive personalization on a Web page by providing a
                  means for rearranging, adding, and removing the components
                  of the page at runtime.
                  Catalog contains a list of the Web Parts available, that can be
                  added to the display.
                  Web parts can be created to work together to present related
                  information or to provide richer user interface.
                  Web parts can be connected with each other by using
                  connection points.




    Ver. 1.0                                                             Slide 17 of 17

More Related Content

What's hot

Parallelminds.web partdemo1
Parallelminds.web partdemo1Parallelminds.web partdemo1
Parallelminds.web partdemo1
parallelminder
 
MAS202 - Customizing IBM Connections - Downloadable
MAS202 - Customizing IBM Connections - DownloadableMAS202 - Customizing IBM Connections - Downloadable
MAS202 - Customizing IBM Connections - Downloadable
paulbastide
 
IBM Connections - Customizing and Extending
IBM Connections - Customizing and ExtendingIBM Connections - Customizing and Extending
IBM Connections - Customizing and Extending
Stuart McIntyre
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
Niit Care
 
Ext Js In Action January 2010 (Meap Edition)
Ext Js In Action January 2010 (Meap Edition)Ext Js In Action January 2010 (Meap Edition)
Ext Js In Action January 2010 (Meap Edition)
Goran Kljajic
 
IBM Websphere Portal | Portal Accelerators
IBM Websphere Portal  |  Portal AcceleratorsIBM Websphere Portal  |  Portal Accelerators
IBM Websphere Portal | Portal Accelerators
Jason Faszholz
 
mobility_whtppr_php
mobility_whtppr_phpmobility_whtppr_php
mobility_whtppr_php
tutorialsruby
 
web development
web developmentweb development
web development
Sevajothi Crafts
 
Customize it! Make IBM Connections look your way
Customize it! Make IBM Connections look your way Customize it! Make IBM Connections look your way
Customize it! Make IBM Connections look your way
Klaus Bild
 
Social Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes DemystifiedSocial Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes Demystified
Claudio Procida
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Mani Chaubey
 
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdf
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdfAlfresco_Web_Quick_Start_User_Help_Enterprise.pdf
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdf
Jeff Smith
 
Connections customization lite
Connections customization liteConnections customization lite
Connections customization lite
Sharon James
 
XCC Self Study Guide
XCC Self Study GuideXCC Self Study Guide
XCC Self Study Guide
TIMETOACT GROUP
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
Niit Care
 
WebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and SmartphonesWebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and Smartphones
Kyle McInnes
 
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
SPTechCon
 

What's hot (17)

Parallelminds.web partdemo1
Parallelminds.web partdemo1Parallelminds.web partdemo1
Parallelminds.web partdemo1
 
MAS202 - Customizing IBM Connections - Downloadable
MAS202 - Customizing IBM Connections - DownloadableMAS202 - Customizing IBM Connections - Downloadable
MAS202 - Customizing IBM Connections - Downloadable
 
IBM Connections - Customizing and Extending
IBM Connections - Customizing and ExtendingIBM Connections - Customizing and Extending
IBM Connections - Customizing and Extending
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
Ext Js In Action January 2010 (Meap Edition)
Ext Js In Action January 2010 (Meap Edition)Ext Js In Action January 2010 (Meap Edition)
Ext Js In Action January 2010 (Meap Edition)
 
IBM Websphere Portal | Portal Accelerators
IBM Websphere Portal  |  Portal AcceleratorsIBM Websphere Portal  |  Portal Accelerators
IBM Websphere Portal | Portal Accelerators
 
mobility_whtppr_php
mobility_whtppr_phpmobility_whtppr_php
mobility_whtppr_php
 
web development
web developmentweb development
web development
 
Customize it! Make IBM Connections look your way
Customize it! Make IBM Connections look your way Customize it! Make IBM Connections look your way
Customize it! Make IBM Connections look your way
 
Social Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes DemystifiedSocial Connections VI — IBM Connections Extensions and Themes Demystified
Social Connections VI — IBM Connections Extensions and Themes Demystified
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdf
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdfAlfresco_Web_Quick_Start_User_Help_Enterprise.pdf
Alfresco_Web_Quick_Start_User_Help_Enterprise.pdf
 
Connections customization lite
Connections customization liteConnections customization lite
Connections customization lite
 
XCC Self Study Guide
XCC Self Study GuideXCC Self Study Guide
XCC Self Study Guide
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
WebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and SmartphonesWebWorks Development for BlackBerry PlayBook and Smartphones
WebWorks Development for BlackBerry PlayBook and Smartphones
 
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
Tutorial, Part 4: SharePoint 101: Jump-Starting the Developer by Rob Windsor ...
 

Viewers also liked

Xml session02
Xml session02Xml session02
Xml session02
Niit Care
 
Xml session07
Xml session07Xml session07
Xml session07
Niit Care
 
Deawsj 7 ppt-1_c
Deawsj 7 ppt-1_cDeawsj 7 ppt-1_c
Deawsj 7 ppt-1_c
Niit Care
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
Niit Care
 
Xml session05
Xml session05Xml session05
Xml session05
Niit Care
 
15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20
Niit Care
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
Niit Care
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
Niit Care
 

Viewers also liked (8)

Xml session02
Xml session02Xml session02
Xml session02
 
Xml session07
Xml session07Xml session07
Xml session07
 
Deawsj 7 ppt-1_c
Deawsj 7 ppt-1_cDeawsj 7 ppt-1_c
Deawsj 7 ppt-1_c
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
 
Xml session05
Xml session05Xml session05
Xml session05
 
15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 

Similar to 15 asp.net session22

15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
Vivek chan
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
Mani Chaubey
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
Vivek chan
 
Parallelminds.web partdemo
Parallelminds.web partdemoParallelminds.web partdemo
Parallelminds.web partdemo
ManishaChothe
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Vivek chan
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
Vivek chan
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
Rishi Kothari
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
Prognoz Technologies Pvt. Ltd.
 
Visualforce report
Visualforce reportVisualforce report
Visualforce report
Rinku Saini
 
Give your web apps some backbone
Give your web apps some backboneGive your web apps some backbone
Give your web apps some backbone
RTigger
 
Asp introduction
Asp introductionAsp introduction
Asp introduction
Sireesh K
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer
home
 
Asp
AspAsp
Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0
Mayank Srivastava
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on line
Milind Patil
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
Niit Care
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
MadonnaLamin1
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5
Usman Zafar Malik
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
dimuthu22
 

Similar to 15 asp.net session22 (20)

15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
Parallelminds.web partdemo
Parallelminds.web partdemoParallelminds.web partdemo
Parallelminds.web partdemo
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Visualforce report
Visualforce reportVisualforce report
Visualforce report
 
Give your web apps some backbone
Give your web apps some backboneGive your web apps some backbone
Give your web apps some backbone
 
Asp introduction
Asp introductionAsp introduction
Asp introduction
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer
 
Asp
AspAsp
Asp
 
Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0Targeting Mobile Platform with MVC 4.0
Targeting Mobile Platform with MVC 4.0
 
Lecture14 abap on line
Lecture14 abap on lineLecture14 abap on line
Lecture14 abap on line
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
 
Components of a Generic Web Application Architecture
Components of  a Generic Web Application ArchitectureComponents of  a Generic Web Application Architecture
Components of a Generic Web Application Architecture
 
SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5SharePoint 2010 Training Session 5
SharePoint 2010 Training Session 5
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 

More from Niit Care

Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
Niit Care
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
Niit Care
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
Niit Care
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
Niit Care
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
Niit Care
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
Niit Care
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
Niit Care
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
Niit Care
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
Niit Care
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
Niit Care
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
Niit Care
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
Niit Care
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
Niit Care
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
Niit Care
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
Niit Care
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
Niit Care
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
Niit Care
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
Niit Care
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
Niit Care
 
Dacj 1-3 a
Dacj 1-3 aDacj 1-3 a
Dacj 1-3 a
Niit Care
 

More from Niit Care (20)

Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
 
Dacj 1-3 a
Dacj 1-3 aDacj 1-3 a
Dacj 1-3 a
 

Recently uploaded

"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
FilipTomaszewski5
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
Fwdays
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
Enterprise Knowledge
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 

Recently uploaded (20)

"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeckPoznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
Poznań ACE event - 19.06.2024 Team 24 Wrapup slidedeck
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 
Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024Northern Engraving | Nameplate Manufacturing Process - 2024
Northern Engraving | Nameplate Manufacturing Process - 2024
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba"NATO Hackathon Winner: AI-Powered Drug Search",  Taras Kloba
"NATO Hackathon Winner: AI-Powered Drug Search", Taras Kloba
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 

15 asp.net session22

  • 1. Developing Web Applications Using ASP.NET Objectives In this session, you will learn to: Describe a Web Part and the purpose of Web Parts Describe the components of a Web Part page and identify scenarios when Web Part pages are useful features of Web applications Describe the more advanced features of Web Parts, including connections between Web Parts Create Web Part pages Create Web Parts Ver. 1.0 Slide 1 of 17
  • 2. Developing Web Applications Using ASP.NET What is a Web Part? In an application that has been built using Web parts, a user can rearrange the components on a page, remove components from a page, or add components from a catalog. Web parts appear on the page as discrete sections with their own distinct user interface and functionality. A Web part can display data from various sources. Each Web part has a set of verbs, which are actions that the user can take. Verbs appears as links or buttons on a Web part. Ver. 1.0 Slide 2 of 17
  • 3. Developing Web Applications Using ASP.NET What is a Web Part? (Contd.) A page that is implemented by using Web parts allows customization of the appearance and contents of the page by allowing a user to: Remove Web parts Add Web parts from a catalog Rearrange Web parts Minimize Web parts Change the appearance of Web parts Web parts also enable users to personalize Web part properties such as: • Region property of a Weather Report Web part. • Industry property of a Stock Quotes Web part. • Pages collection in a Web Traffic Web Part. Ver. 1.0 Slide 3 of 17
  • 4. Developing Web Applications Using ASP.NET What is a Web Part? (Contd.) A user can add a new Web part to the page by using the Web parts catalog. The Web parts catalog displays a list of all available Web parts that are not already on the page. A user can select a Web part from the catalog to add it to the display. When a user removes a Web part from the page, it reappears in the catalog. Ver. 1.0 Slide 4 of 17
  • 5. Developing Web Applications Using ASP.NET Web Part Controls The Web parts control set is extensive, but some controls are essential. A developer needs to be familiar with the following Web part controls to create a basic Web part page: WebPartManager CatalogZone EditorZone WebPartZone ConnectionsZone GenericWebPart CatalogPart Connection EditorPart Ver. 1.0 Slide 5 of 17
  • 6. Developing Web Applications Using ASP.NET What is Web Part Page? • Many of the advanced capabilities that Web parts provide are enabled by the Web part pages on which the Web part is placed and do not work on ordinary ASP.NET Web Form pages. • Every Web part page contains one or more zones. • The purpose of a zone is to contain Web parts, to organize them, and to provide elements of the user interface. • Each zone can be oriented horizontally or vertically. • Every Web part must include a WebPartManager object. • The WebPartManager object is an invisible object that performs a number of essential tasks on the page, such as: Tracking the Web parts on the page Tracking the zones that contain Web parts Tracking the order of Web parts in the zone Ver. 1.0 Slide 6 of 17
  • 7. Developing Web Applications Using ASP.NET Web Part Page Display Modes • A Microsoft ASP.NET Web Parts page can enter several different display modes. • A display mode is a special state that applies to an entire page, where certain user interface elements are visible and enabled, while others are invisible and disabled. • Display mode enables users to perform certain tasks to modify or personalize a page. • A page can be in only one display mode at a time. • The WebPartManager control contains the implementations for the display modes, available in the Web parts control set and manages all display mode operations for a page. Ver. 1.0 Slide 7 of 17
  • 8. Developing Web Applications Using ASP.NET Web Part Page Display Modes (Contd.) • Display mode of a page can be changed programmatically by using the DisplayMode property. • There are five standard display modes in Web Parts control set: Browse Design Edit Catalog Connect • All the display modes are derived from the WebPartDisplayMode class. Ver. 1.0 Slide 8 of 17
  • 9. Developing Web Applications Using ASP.NET Connected Web Parts • Web part connections provide a route to transmit and receive information among Web parts, in case they need to work together. • A Web part can be connected to another Web part by using connection points. • When two Web parts are connected, one of them acts as a data provider and the other acts as a data consumer. • A connection point is an instance of a ConnectionPoint-derived class. • A connection point can be created by using: • ConnectionConsumerAtribute class • ConnectionProviderAttribute class Ver. 1.0 Slide 9 of 17
  • 10. Developing Web Applications Using ASP.NET Connected Web Parts (Contd.) • A custom connection point can be created by inheriting from the ConnectionPoint class; or by inheriting from ConnectionConsumerAtribute class or ConnectionProviderAttribute class. • A control acting as either a consumer or a provider can have multiple connection points. • Connections between controls in a Web Parts zone can be of two types: Static Dynamic Ver. 1.0 Slide 10 of 17
  • 11. Developing Web Applications Using ASP.NET Connected Web Parts (Contd.) When creating a connection: A control acting as a data provider defines a communication contract indicating the data it can provide. Another control, acting as the consumer and with the knowledge of the communication contract , retrieves the data. Connections between controls in a Web parts zone use a communication contract in the form of an interface. Ver. 1.0 Slide 11 of 17
  • 12. Developing Web Applications Using ASP.NET Connected Web Parts (Contd.) Personalizing Connections: When you enable Connection Display mode for a Web part page, you enable users to customize and save the connections according to their preference. When a page is in the Connection Display mode: The Connections Zone is displayed to the user. A user can use the Connections Zone to join connection points and route data from one Web part to another. Ver. 1.0 Slide 12 of 17
  • 13. Developing Web Applications Using ASP.NET Connected Web Parts (Contd.) Transformers: • Data can be reformatted when it is passed between Web parts by using a transformer. • Several transformers are included in ASP.NET 2.0 such as System.Web.UI.WebControl.WebParts. RowToFieldTransformer. • A custom transformer can be created by inheriting from the WebPartTransformer class. Ver. 1.0 Slide 13 of 17
  • 14. Developing Web Applications Using ASP.NET Demo: Building Web Part Pages and Web Parts Problem Statement: You are a developer in the Adventure Works organization, a fictitious bicycle manufacturer. You have been asked to assist in creating a new Business-to-Consumer (B2C) Web application and a related Business-to-Employee (B2E) extranet portal. Decisions on the design of the application have already been made. You have been asked to carry out a number of specific tasks in order to implement various elements of this design. As part of the B2C development, you have been asked to prototype a Web Part Page for employees’ extranet portal. Ver. 1.0 Slide 14 of 17
  • 15. Developing Web Applications Using ASP.NET Demo: Building Web Part Pages and Web Parts (Contd.) Solution: • To solve this problem, you need to perform following tasks: 1. Create a Web Part Page a. Open the starter solution. b. Manage roles for the employee portal c. Start SQL Express d. Add the employee portal Web page e. Add Web Part framework controls and a layout to the employee portal Web page f. Add mode-switching capabilities to the portal page Ver. 1.0 Slide 15 of 17
  • 16. Developing Web Applications Using ASP.NET Demo: Building Web Part Pages and Web Parts (Contd.) 1. Create a Web Part a. Add and develop a User Control. b. Add and configure the User Control as a Web Part. c. Test the portal.aspx page. d. Test the Web Part Page personalization behavior. Ver. 1.0 Slide 16 of 17
  • 17. Developing Web Applications Using ASP.NET Summary In this session, you learned that: ASP.NET Web Parts give the developer a way to support extensive personalization on a Web page by providing a means for rearranging, adding, and removing the components of the page at runtime. Catalog contains a list of the Web Parts available, that can be added to the display. Web parts can be created to work together to present related information or to provide richer user interface. Web parts can be connected with each other by using connection points. Ver. 1.0 Slide 17 of 17