SlideShare une entreprise Scribd logo
1  sur  17
Developing Web Applications Using ASP.NET
Objectives


                In this session, you will learn to:
                   Create connected Web Parts




     Ver. 1.0                                         Slide 1 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 2 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 Connected Web Parts
                        a. Add a new class library project to contain the custom Web Part
                           controls.
                        b. Add a provider Web Part.
                        c. Develop the provider Web Part functionality.
                        d. Define the connection provider method for the Member class.
                        e. Add a consumer Web Part.
                        f. Develop the consumer Web Part functionality.
                        g. Define the connection consumer method for MemberDetails class.
                        h. Build the control library.
                        i. Add the controls from the Web Parts library to the Toolbox.
                        j. Add a ZoneTemplated section to the MainZone area.
                        k. Add connection information to the WebPartManager control.
                        l. Run and test the connected Web Parts.




     Ver. 1.0                                                                       Slide 3 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                List the types of Web sites that can be created using Visual
                Studio 2005.




                Answer:
                   Local IIS Web site
                   File System Web site
                   FTP site
                   Remote Web site




     Ver. 1.0                                                        Slide 4 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                What are the levels at which errors can be handled in a
                Microsoft ASP.NET Web Application?




                Answer:
                   Errors in an ASP.NET Web application can be handled at three
                   levels:
                    • At the method level by using Try.. Catch blocks
                    • At the page level by using Page.Error event
                    • At the application level by using the web.config file and a
                      generalized error handling page OR by using the
                      Application_Error event in global.asax file.

     Ver. 1.0                                                                       Slide 5 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                List the methods that can be used to add Web server
                controls to Web forms.




                Answer:
                   Web server controls can be added to a Web form by:
                      Dragging and dropping them from the Toolbox on to the Design
                      view of the Web page.
                      Dragging and dropping them from the Toolbox into the Source
                      view of the Web page.
                      Typing the markup text for the control directly into the Source view
                      of the Web page.


     Ver. 1.0                                                                    Slide 6 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                Which attribute needs to be included in the <%@Page%>
                directive in a content page that references a master page?




                Answer:
                   MasterPageFile




     Ver. 1.0                                                       Slide 7 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                •   List three important events exposed by the Application
                    object.




                    Answer:
                       Appliaction.Start
                       Appliation.End
                       Application.Error




     Ver. 1.0                                                        Slide 8 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                What is the basic procedure for displaying data from a
                relational database on a Web pages?




                Answer:
                   To display data from a relational database on a Web page,
                   you need to:
                    •   Add a data source control to the Web page, and then configure it
                        to connect to the required database.
                    •   Specify the SELECT statement in the SelectCommand property
                        of the data source control to retrieve the data.
                    •   Bind data controls or data-aware controls to the data source
                        control.
     Ver. 1.0                                                                    Slide 9 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                What is the use of the two special values, “*” and “?” in
                authorization module to control access of a directory in the
                Web site hierarchy?




                Answer:
                   “*” specifies that the entry applies to everyone who visits a
                   page in the directory.
                   “?” specifies that the entry applies to anonymous users who
                   visit the pages in the directory.




     Ver. 1.0                                                              Slide 10 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                Which utility enables a user to deploy a compiled Web site
                without needing to copy the source files?




                Answer:
                   The Publish Web Site Utility




     Ver. 1.0                                                       Slide 11 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                Which property of the HttpBrowserCapabilities object
                contains information about the browser that initiated the
                request?




                Answer:
                   Request.Browser




     Ver. 1.0                                                     Slide 12 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                Resource files for Implicit localization are stored in the
                ____________ directory and those for explicit localization
                are stored in the ____________ directory.




                Answer:
                   App_LocalResources
                   App_GlobalResources




     Ver. 1.0                                                        Slide 13 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                User controls are saved with an extension of __________
                and use the __________ directive instead of the <%@Page
                %> directive.




                Answer:
                   .ascx
                   <%@Control%>




     Ver. 1.0                                                   Slide 14 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                How can you cache multiple versions of a page?




                Answer:
                • Multiple versions of a page can be cached by using the
                  varybyparam attribute in the <%@OutputCache%> directive.




     Ver. 1.0                                                      Slide 15 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                Which event handler can be used to set the ASP.NET
                theme at run time?




                Answer:
                   Page_PreInit




     Ver. 1.0                                                    Slide 16 of 17
Developing Web Applications Using ASP.NET
Test Your Understanding


                List the five standard display modes in the Web parts
                control set.




                Answer:
                   Browse mode
                   Design mode
                   Edit mode
                   Catalog display mode
                   Connection display mode



     Ver. 1.0                                                       Slide 17 of 17

Contenu connexe

Tendances

Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcatVenkat Gowda
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22Niit Care
 
05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07Niit Care
 
Installing the oracle bi mobile app designer
Installing the oracle bi mobile app designerInstalling the oracle bi mobile app designer
Installing the oracle bi mobile app designerRavi Kumar Lanke
 
An overview of the architecture of electron.js
An overview of the architecture of electron.jsAn overview of the architecture of electron.js
An overview of the architecture of electron.jsMoon Technolabs Pvt. Ltd.
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13Vivek chan
 
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...Ivan Sanders
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Mani Chaubey
 
Web application development process
Web application development processWeb application development process
Web application development processJohn Smith
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Niit Care
 
How to increase the ui performance of apps designed using react
How to increase the ui performance of apps designed using react How to increase the ui performance of apps designed using react
How to increase the ui performance of apps designed using react MoonTechnolabsPvtLtd
 
Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Michael Dobe, Ph.D.
 
Automate Web Apps With Selenium
Automate Web Apps With SeleniumAutomate Web Apps With Selenium
Automate Web Apps With SeleniumEdureka!
 
Why do developers prefer ionic to build progressive web apps
Why do developers prefer ionic to build progressive web apps  Why do developers prefer ionic to build progressive web apps
Why do developers prefer ionic to build progressive web apps Moon Technolabs Pvt. Ltd.
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Vivek chan
 
Brudnick Net Ppt Portfolio
Brudnick Net Ppt PortfolioBrudnick Net Ppt Portfolio
Brudnick Net Ppt Portfoliobrudnick1212
 
What makes xamarin the best choice for multiplatform app development
What makes xamarin the best choice for multiplatform app development What makes xamarin the best choice for multiplatform app development
What makes xamarin the best choice for multiplatform app development MoonTechnolabsPvtLtd
 

Tendances (20)

Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcat
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
 
05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07
 
Installing the oracle bi mobile app designer
Installing the oracle bi mobile app designerInstalling the oracle bi mobile app designer
Installing the oracle bi mobile app designer
 
Intro to asp.net mvc 4 with visual studio
Intro to asp.net mvc 4 with visual studioIntro to asp.net mvc 4 with visual studio
Intro to asp.net mvc 4 with visual studio
 
An overview of the architecture of electron.js
An overview of the architecture of electron.jsAn overview of the architecture of electron.js
An overview of the architecture of electron.js
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
 
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
SharePoint Connections Coast to Coast Migrating SharePoint 2007 Solutions to ...
 
Tutorial 1
Tutorial 1Tutorial 1
Tutorial 1
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Selenium
SeleniumSelenium
Selenium
 
Web application development process
Web application development processWeb application development process
Web application development process
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
How to increase the ui performance of apps designed using react
How to increase the ui performance of apps designed using react How to increase the ui performance of apps designed using react
How to increase the ui performance of apps designed using react
 
Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)
 
Automate Web Apps With Selenium
Automate Web Apps With SeleniumAutomate Web Apps With Selenium
Automate Web Apps With Selenium
 
Why do developers prefer ionic to build progressive web apps
Why do developers prefer ionic to build progressive web apps  Why do developers prefer ionic to build progressive web apps
Why do developers prefer ionic to build progressive web apps
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Brudnick Net Ppt Portfolio
Brudnick Net Ppt PortfolioBrudnick Net Ppt Portfolio
Brudnick Net Ppt Portfolio
 
What makes xamarin the best choice for multiplatform app development
What makes xamarin the best choice for multiplatform app development What makes xamarin the best choice for multiplatform app development
What makes xamarin the best choice for multiplatform app development
 

En vedette

Travel inside CH - RP - June 2014
Travel inside CH - RP - June 2014Travel inside CH - RP - June 2014
Travel inside CH - RP - June 2014Beachcomber Hotels
 
Presentación próxima edición _ Junio, julio, Agosto
Presentación próxima edición _ Junio, julio, AgostoPresentación próxima edición _ Junio, julio, Agosto
Presentación próxima edición _ Junio, julio, AgostoLa Guía Más Útil
 
Portafolio electrónico
Portafolio electrónicoPortafolio electrónico
Portafolio electrónicoKathiaNair
 
Mantenimiento de computadores
Mantenimiento de computadoresMantenimiento de computadores
Mantenimiento de computadoresleydi-m
 
Presentation - SelectedWorks
Presentation - SelectedWorksPresentation - SelectedWorks
Presentation - SelectedWorksSteve Ling
 
Ibm connections monitoring with nagios
Ibm connections monitoring with nagiosIbm connections monitoring with nagios
Ibm connections monitoring with nagiosLetsConnect
 
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...Klaus Bild
 
Der entspannte Administrator - How to make your life easier by using TDI to a...
Der entspannte Administrator - How to make your life easier by using TDI to a...Der entspannte Administrator - How to make your life easier by using TDI to a...
Der entspannte Administrator - How to make your life easier by using TDI to a...Klaus Bild
 
03 penyusunan program semester
03 penyusunan program semester03 penyusunan program semester
03 penyusunan program semesterheri baskoro
 
Bloc 1714
Bloc 1714Bloc 1714
Bloc 1714turetes
 
7 สามัญ คณิต
7 สามัญ คณิต7 สามัญ คณิต
7 สามัญ คณิต0901326521
 
7 สามัญ อังกฤษ
7 สามัญ อังกฤษ7 สามัญ อังกฤษ
7 สามัญ อังกฤษ0901326521
 
So fördert der Kanton Luzern das bessere Bauen und Erneuern
So fördert der Kanton Luzern das bessere Bauen und ErneuernSo fördert der Kanton Luzern das bessere Bauen und Erneuern
So fördert der Kanton Luzern das bessere Bauen und ErneuernVorname Nachname
 

En vedette (20)

Travel inside CH - RP - June 2014
Travel inside CH - RP - June 2014Travel inside CH - RP - June 2014
Travel inside CH - RP - June 2014
 
Ativ1 4 mariajose
Ativ1 4 mariajoseAtiv1 4 mariajose
Ativ1 4 mariajose
 
La familia
La familiaLa familia
La familia
 
Se vale todo
Se vale todoSe vale todo
Se vale todo
 
Presentación próxima edición _ Junio, julio, Agosto
Presentación próxima edición _ Junio, julio, AgostoPresentación próxima edición _ Junio, julio, Agosto
Presentación próxima edición _ Junio, julio, Agosto
 
CurriculumVitae
CurriculumVitaeCurriculumVitae
CurriculumVitae
 
Ativ1 5 mariajose
Ativ1 5 mariajoseAtiv1 5 mariajose
Ativ1 5 mariajose
 
Portafolio electrónico
Portafolio electrónicoPortafolio electrónico
Portafolio electrónico
 
01
0101
01
 
Mantenimiento de computadores
Mantenimiento de computadoresMantenimiento de computadores
Mantenimiento de computadores
 
Presentation - SelectedWorks
Presentation - SelectedWorksPresentation - SelectedWorks
Presentation - SelectedWorks
 
Ventas fidelización
Ventas fidelizaciónVentas fidelización
Ventas fidelización
 
Ibm connections monitoring with nagios
Ibm connections monitoring with nagiosIbm connections monitoring with nagios
Ibm connections monitoring with nagios
 
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...
The Best Things in Life Are Free – Wie Sie Ihre IBM ConnecEons Umgebung koste...
 
Der entspannte Administrator - How to make your life easier by using TDI to a...
Der entspannte Administrator - How to make your life easier by using TDI to a...Der entspannte Administrator - How to make your life easier by using TDI to a...
Der entspannte Administrator - How to make your life easier by using TDI to a...
 
03 penyusunan program semester
03 penyusunan program semester03 penyusunan program semester
03 penyusunan program semester
 
Bloc 1714
Bloc 1714Bloc 1714
Bloc 1714
 
7 สามัญ คณิต
7 สามัญ คณิต7 สามัญ คณิต
7 สามัญ คณิต
 
7 สามัญ อังกฤษ
7 สามัญ อังกฤษ7 สามัญ อังกฤษ
7 สามัญ อังกฤษ
 
So fördert der Kanton Luzern das bessere Bauen und Erneuern
So fördert der Kanton Luzern das bessere Bauen und ErneuernSo fördert der Kanton Luzern das bessere Bauen und Erneuern
So fördert der Kanton Luzern das bessere Bauen und Erneuern
 

Similaire à 16 asp.net session23

16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23Vivek chan
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Niit Care
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Vivek chan
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02Mani Chaubey
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Mani Chaubey
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10Niit Care
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05Mani Chaubey
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20Niit Care
 
Lab 3) create a web application
Lab 3) create a web applicationLab 3) create a web application
Lab 3) create a web applicationtechbed
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Vivek chan
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpslilylucy
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Vivek chan
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19Niit Care
 

Similaire à 16 asp.net session23 (20)

16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
Lab 3) create a web application
Lab 3) create a web applicationLab 3) create a web application
Lab 3) create a web application
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumps
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
 
Asp
AspAsp
Asp
 
Building richwebapplicationsusingasp
Building richwebapplicationsusingaspBuilding richwebapplicationsusingasp
Building richwebapplicationsusingasp
 
32916
3291632916
32916
 

Plus de Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
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
 

Dernier

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Dernier (20)

Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

16 asp.net session23

  • 1. Developing Web Applications Using ASP.NET Objectives In this session, you will learn to: Create connected Web Parts Ver. 1.0 Slide 1 of 17
  • 2. 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 2 of 17
  • 3. 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 Connected Web Parts a. Add a new class library project to contain the custom Web Part controls. b. Add a provider Web Part. c. Develop the provider Web Part functionality. d. Define the connection provider method for the Member class. e. Add a consumer Web Part. f. Develop the consumer Web Part functionality. g. Define the connection consumer method for MemberDetails class. h. Build the control library. i. Add the controls from the Web Parts library to the Toolbox. j. Add a ZoneTemplated section to the MainZone area. k. Add connection information to the WebPartManager control. l. Run and test the connected Web Parts. Ver. 1.0 Slide 3 of 17
  • 4. Developing Web Applications Using ASP.NET Test Your Understanding List the types of Web sites that can be created using Visual Studio 2005. Answer: Local IIS Web site File System Web site FTP site Remote Web site Ver. 1.0 Slide 4 of 17
  • 5. Developing Web Applications Using ASP.NET Test Your Understanding What are the levels at which errors can be handled in a Microsoft ASP.NET Web Application? Answer: Errors in an ASP.NET Web application can be handled at three levels: • At the method level by using Try.. Catch blocks • At the page level by using Page.Error event • At the application level by using the web.config file and a generalized error handling page OR by using the Application_Error event in global.asax file. Ver. 1.0 Slide 5 of 17
  • 6. Developing Web Applications Using ASP.NET Test Your Understanding List the methods that can be used to add Web server controls to Web forms. Answer: Web server controls can be added to a Web form by: Dragging and dropping them from the Toolbox on to the Design view of the Web page. Dragging and dropping them from the Toolbox into the Source view of the Web page. Typing the markup text for the control directly into the Source view of the Web page. Ver. 1.0 Slide 6 of 17
  • 7. Developing Web Applications Using ASP.NET Test Your Understanding Which attribute needs to be included in the <%@Page%> directive in a content page that references a master page? Answer: MasterPageFile Ver. 1.0 Slide 7 of 17
  • 8. Developing Web Applications Using ASP.NET Test Your Understanding • List three important events exposed by the Application object. Answer: Appliaction.Start Appliation.End Application.Error Ver. 1.0 Slide 8 of 17
  • 9. Developing Web Applications Using ASP.NET Test Your Understanding What is the basic procedure for displaying data from a relational database on a Web pages? Answer: To display data from a relational database on a Web page, you need to: • Add a data source control to the Web page, and then configure it to connect to the required database. • Specify the SELECT statement in the SelectCommand property of the data source control to retrieve the data. • Bind data controls or data-aware controls to the data source control. Ver. 1.0 Slide 9 of 17
  • 10. Developing Web Applications Using ASP.NET Test Your Understanding What is the use of the two special values, “*” and “?” in authorization module to control access of a directory in the Web site hierarchy? Answer: “*” specifies that the entry applies to everyone who visits a page in the directory. “?” specifies that the entry applies to anonymous users who visit the pages in the directory. Ver. 1.0 Slide 10 of 17
  • 11. Developing Web Applications Using ASP.NET Test Your Understanding Which utility enables a user to deploy a compiled Web site without needing to copy the source files? Answer: The Publish Web Site Utility Ver. 1.0 Slide 11 of 17
  • 12. Developing Web Applications Using ASP.NET Test Your Understanding Which property of the HttpBrowserCapabilities object contains information about the browser that initiated the request? Answer: Request.Browser Ver. 1.0 Slide 12 of 17
  • 13. Developing Web Applications Using ASP.NET Test Your Understanding Resource files for Implicit localization are stored in the ____________ directory and those for explicit localization are stored in the ____________ directory. Answer: App_LocalResources App_GlobalResources Ver. 1.0 Slide 13 of 17
  • 14. Developing Web Applications Using ASP.NET Test Your Understanding User controls are saved with an extension of __________ and use the __________ directive instead of the <%@Page %> directive. Answer: .ascx <%@Control%> Ver. 1.0 Slide 14 of 17
  • 15. Developing Web Applications Using ASP.NET Test Your Understanding How can you cache multiple versions of a page? Answer: • Multiple versions of a page can be cached by using the varybyparam attribute in the <%@OutputCache%> directive. Ver. 1.0 Slide 15 of 17
  • 16. Developing Web Applications Using ASP.NET Test Your Understanding Which event handler can be used to set the ASP.NET theme at run time? Answer: Page_PreInit Ver. 1.0 Slide 16 of 17
  • 17. Developing Web Applications Using ASP.NET Test Your Understanding List the five standard display modes in the Web parts control set. Answer: Browse mode Design mode Edit mode Catalog display mode Connection display mode Ver. 1.0 Slide 17 of 17