SlideShare a Scribd company logo
Developing Web Applications Using ASP.NET
In this session, you will learn to:
Create connected Web Parts
Objectives
Developing Web Applications Using ASP.NET
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.
Demo: Building Web Part Pages and Web Parts
Developing Web Applications Using ASP.NET
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.
Demo: Building Web Part Pages and Web Parts (Contd.)
Developing Web Applications Using ASP.NET
List the types of Web sites that can be created using Visual
Studio 2005.
Test Your Understanding
Answer:
Local IIS Web site
File System Web site
FTP site
Remote Web site
Developing Web Applications Using ASP.NET
What are the levels at which errors can be handled in a
Microsoft ASP.NET Web Application?
Test Your Understanding
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.
Developing Web Applications Using ASP.NET
List the methods that can be used to add Web server
controls to Web forms.
Test Your Understanding
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.
Developing Web Applications Using ASP.NET
Which attribute needs to be included in the <%@Page%>
directive in a content page that references a master page?
Test Your Understanding
Answer:
MasterPageFile
Developing Web Applications Using ASP.NET
List three important events exposed by the Application
object.
Test Your Understanding
Answer:
Appliaction.Start
Appliation.End
Application.Error
Developing Web Applications Using ASP.NET
What is the basic procedure for displaying data from a
relational database on a Web pages?
Test Your Understanding
Answer:
To display data from a relational database on a Web page,
you need to:
1. Add a data source control to the Web page, and then configure it
to connect to the required database.
2. Specify the SELECT statement in the SelectCommand property
of the data source control to retrieve the data.
3. Bind data controls or data-aware controls to the data source
control.
Developing Web Applications Using ASP.NET
What is the use of the two special values, “*” and “?” in
authorization module to control access of a directory in the
Web site hierarchy?
Test Your Understanding
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.
Developing Web Applications Using ASP.NET
Which utility enables a user to deploy a compiled Web site
without needing to copy the source files?
Test Your Understanding
Answer:
The Publish Web Site Utility
Developing Web Applications Using ASP.NET
Which property of the HttpBrowserCapabilities object
contains information about the browser that initiated the
request?
Test Your Understanding
Answer:
Request.Browser
Developing Web Applications Using ASP.NET
Resource files for Implicit localization are stored in the
____________ directory and those for explicit localization
are stored in the ____________ directory.
Test Your Understanding
Answer:
App_LocalResources
App_GlobalResources
Developing Web Applications Using ASP.NET
User controls are saved with an extension of __________
and use the __________ directive instead of the <%@Page
%> directive.
Test Your Understanding
Answer:
.ascx
<%@Control%>
Developing Web Applications Using ASP.NET
How can you cache multiple versions of a page?
Test Your Understanding
Answer:
Multiple versions of a page can be cached by using the
varybyparam attribute in the <%@OutputCache%> directive.
Developing Web Applications Using ASP.NET
Which event handler can be used to set the ASP.NET theme
at run time?
Test Your Understanding
Answer:
Page_PreInit
Developing Web Applications Using ASP.NET
List the five standard display modes in the Web parts control
set.
Test Your Understanding
Answer:
Browse mode
Design mode
Edit mode
Catalog display mode
Connection display mode

More Related Content

What's hot (20)

Implementing Google User Authentication In GAE Application
Implementing Google User Authentication In GAE ApplicationImplementing Google User Authentication In GAE Application
Implementing Google User Authentication In GAE Application
TC Ong
 
Mule integration with linkedin
Mule integration with linkedinMule integration with linkedin
Mule integration with linkedin
Khasim Saheb
 
How to publish ASP.NET Core web application via Visual Studio 2019.pdf
How to publish ASP.NET Core web application via Visual Studio 2019.pdfHow to publish ASP.NET Core web application via Visual Studio 2019.pdf
How to publish ASP.NET Core web application via Visual Studio 2019.pdf
gerardov5
 
Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
Ramakrishna Narkedamilli
 
Automated Acceptance Testing Example
Automated Acceptance Testing ExampleAutomated Acceptance Testing Example
Automated Acceptance Testing Example
Hani Massoud
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
Son Nguyen
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basics
petrov
 
Introduction to azure web applications for office and share point developers
Introduction to azure web applications for office and share point developersIntroduction to azure web applications for office and share point developers
Introduction to azure web applications for office and share point developers
JoAnna Cheshire
 
32916
3291632916
32916
Pragya Rastogi
 
Microsoft Tech Ed 2006 #2
Microsoft Tech Ed 2006 #2Microsoft Tech Ed 2006 #2
Microsoft Tech Ed 2006 #2
Jetsada Phantharangsee
 
Asp.Net Tutorials
Asp.Net TutorialsAsp.Net Tutorials
Asp.Net Tutorials
Ram Sagar Mourya
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
Daniel Meixner
 
Admin Panel
Admin Panel Admin Panel
Admin Panel
Lahore Garrison University
 
Microsoft Tech Ed 2006 #1
Microsoft Tech Ed 2006 #1Microsoft Tech Ed 2006 #1
Microsoft Tech Ed 2006 #1
Jetsada Phantharangsee
 
Do's and don'ts for Office 365 development
Do's and don'ts for Office 365 developmentDo's and don'ts for Office 365 development
Do's and don'ts for Office 365 development
Chris O'Brien
 
10 practices that every developer needs to start right now
10 practices that every developer needs to start right now10 practices that every developer needs to start right now
10 practices that every developer needs to start right now
Caleb Jenkins
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptx
vishal choudhary
 
SPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
SPS Bremen 2020 The happy developer - SharePoint Framework - React - MindfulnessSPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
SPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
Olli Jääskeläinen
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
Vivek Singh Chandel
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 
Implementing Google User Authentication In GAE Application
Implementing Google User Authentication In GAE ApplicationImplementing Google User Authentication In GAE Application
Implementing Google User Authentication In GAE Application
TC Ong
 
Mule integration with linkedin
Mule integration with linkedinMule integration with linkedin
Mule integration with linkedin
Khasim Saheb
 
How to publish ASP.NET Core web application via Visual Studio 2019.pdf
How to publish ASP.NET Core web application via Visual Studio 2019.pdfHow to publish ASP.NET Core web application via Visual Studio 2019.pdf
How to publish ASP.NET Core web application via Visual Studio 2019.pdf
gerardov5
 
Automated Acceptance Testing Example
Automated Acceptance Testing ExampleAutomated Acceptance Testing Example
Automated Acceptance Testing Example
Hani Massoud
 
Integration with microsoft share point
Integration with microsoft share pointIntegration with microsoft share point
Integration with microsoft share point
Son Nguyen
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basics
petrov
 
Introduction to azure web applications for office and share point developers
Introduction to azure web applications for office and share point developersIntroduction to azure web applications for office and share point developers
Introduction to azure web applications for office and share point developers
JoAnna Cheshire
 
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
DotNet Cologne 2015 - Windows 10 AppDev, Teil2: Coole APIs - (Daniel Meixner)
Daniel Meixner
 
Do's and don'ts for Office 365 development
Do's and don'ts for Office 365 developmentDo's and don'ts for Office 365 development
Do's and don'ts for Office 365 development
Chris O'Brien
 
10 practices that every developer needs to start right now
10 practices that every developer needs to start right now10 practices that every developer needs to start right now
10 practices that every developer needs to start right now
Caleb Jenkins
 
IBM cognos work space configuration.pptx
IBM cognos work space configuration.pptxIBM cognos work space configuration.pptx
IBM cognos work space configuration.pptx
vishal choudhary
 
SPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
SPS Bremen 2020 The happy developer - SharePoint Framework - React - MindfulnessSPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
SPS Bremen 2020 The happy developer - SharePoint Framework - React - Mindfulness
Olli Jääskeläinen
 
Creating a custom connector in mule
Creating a custom connector in muleCreating a custom connector in mule
Creating a custom connector in mule
Achyuta Lakshmi
 

Viewers also liked (13)

03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Vivek Singh Chandel
 
Net framework session01
Net framework session01Net framework session01
Net framework session01
Vivek Singh Chandel
 
09 intel v_tune_session_13
09 intel v_tune_session_1309 intel v_tune_session_13
09 intel v_tune_session_13
Vivek Singh Chandel
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
Vivek Singh Chandel
 
08 asp.net session11
08 asp.net session1108 asp.net session11
08 asp.net session11
Vivek Singh Chandel
 
05 asp.net session07
05 asp.net session0705 asp.net session07
05 asp.net session07
Vivek Singh Chandel
 
07 intel v_tune_session_10
07 intel v_tune_session_1007 intel v_tune_session_10
07 intel v_tune_session_10
Vivek Singh Chandel
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
Vivek Singh Chandel
 
Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF Wireless Communication via Mobile Phone Using DTMF
Wireless Communication via Mobile Phone Using DTMF
Vivek Singh Chandel
 
Net framework session02
Net framework session02Net framework session02
Net framework session02
Vivek Singh Chandel
 
Series Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kidsSeries Parallel Circuit presentation for schools and kids
Series Parallel Circuit presentation for schools and kids
Vivek Singh Chandel
 
Complete C programming Language Course
Complete C programming Language CourseComplete C programming Language Course
Complete C programming Language Course
Vivek Singh Chandel
 
CyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & SubnettingCyberLab TCP/IP and IP Addressing & Subnetting
CyberLab TCP/IP and IP Addressing & Subnetting
Vivek Singh Chandel
 

Similar to 16 asp.net session23 (20)

03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Mani Chaubey
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
Vivek Singh Chandel
 
ASP.NET Interview Questions PDF By ScholarHat
ASP.NET  Interview Questions PDF By ScholarHatASP.NET  Interview Questions PDF By ScholarHat
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
 
Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)
Michael Dobe, Ph.D.
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Vivek Singh Chandel
 
15 asp.net session22
15 asp.net session2215 asp.net session22
15 asp.net session22
Vivek Singh Chandel
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Mani Chaubey
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docx
hanneloremccaffery
 
Beyond The MVC
Beyond The MVCBeyond The MVC
Beyond The MVC
george.james
 
seminar
seminarseminar
seminar
ram007inter
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
ssuserc28c7c1
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Mani Chaubey
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
Terry Yoast
 
Parallelminds.web partdemo1
Parallelminds.web partdemo1Parallelminds.web partdemo1
Parallelminds.web partdemo1
parallelminder
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
Rasel Khan
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
Vivek Singh Chandel
 
11 asp.net session16
11 asp.net session1611 asp.net session16
11 asp.net session16
Niit Care
 
13 asp.net session19
13 asp.net session1913 asp.net session19
13 asp.net session19
Vivek Singh Chandel
 
5a329780735625624 ch10
5a329780735625624 ch105a329780735625624 ch10
5a329780735625624 ch10
harkesh singh
 
04 asp.net session05
04 asp.net session0504 asp.net session05
04 asp.net session05
Vivek Singh Chandel
 

More from Vivek Singh Chandel (15)

Deceptive Marketing.pdf
Deceptive Marketing.pdfDeceptive Marketing.pdf
Deceptive Marketing.pdf
Vivek Singh Chandel
 
brain controled wheel chair.pdf
brain controled wheel chair.pdfbrain controled wheel chair.pdf
brain controled wheel chair.pdf
Vivek Singh Chandel
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Vivek Singh Chandel
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Vivek Singh Chandel
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking drivers
Vivek Singh Chandel
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using Thoughts
Vivek Singh Chandel
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Vivek Singh Chandel
 
Net framework session03
Net framework session03Net framework session03
Net framework session03
Vivek Singh Chandel
 
04 intel v_tune_session_05
04 intel v_tune_session_0504 intel v_tune_session_05
04 intel v_tune_session_05
Vivek Singh Chandel
 
03 intel v_tune_session_04
03 intel v_tune_session_0403 intel v_tune_session_04
03 intel v_tune_session_04
Vivek Singh Chandel
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
Vivek Singh Chandel
 
01 intel v_tune_session_01
01 intel v_tune_session_0101 intel v_tune_session_01
01 intel v_tune_session_01
Vivek Singh Chandel
 
10 asp.net session14
10 asp.net session1410 asp.net session14
10 asp.net session14
Vivek Singh Chandel
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
Vivek Singh Chandel
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Vivek Singh Chandel
 
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Mechanism of fullerene synthesis in the ARC REACTOR (Vivek Chan 2013)
Vivek Singh Chandel
 
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Manav dharma shashtra tatha shashan paddati   munshiram jigyasuManav dharma shashtra tatha shashan paddati   munshiram jigyasu
Manav dharma shashtra tatha shashan paddati munshiram jigyasu
Vivek Singh Chandel
 
Self driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking driversSelf driving and connected cars fooling sensors and tracking drivers
Self driving and connected cars fooling sensors and tracking drivers
Vivek Singh Chandel
 
EEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using ThoughtsEEG Acquisition Device to Control Wheelchair Using Thoughts
EEG Acquisition Device to Control Wheelchair Using Thoughts
Vivek Singh Chandel
 
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Full Shri Ramcharitmanas in Hindi Complete With Meaning (Ramayana)
Vivek Singh Chandel
 

Recently uploaded (20)

Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
SPRING FESTIVITIES - UK AND USA -
SPRING FESTIVITIES - UK AND USA            -SPRING FESTIVITIES - UK AND USA            -
SPRING FESTIVITIES - UK AND USA -
Colégio Santa Teresinha
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 5-3-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 5-3-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 
Handling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptxHandling Multiple Choice Responses: Fortune Effiong.pptx
Handling Multiple Choice Responses: Fortune Effiong.pptx
AuthorAIDNationalRes
 
The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...The ever evoilving world of science /7th class science curiosity /samyans aca...
The ever evoilving world of science /7th class science curiosity /samyans aca...
Sandeep Swamy
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - WorksheetCBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
CBSE - Grade 8 - Science - Chemistry - Metals and Non Metals - Worksheet
Sritoma Majumder
 
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdfExploring-Substances-Acidic-Basic-and-Neutral.pdf
Exploring-Substances-Acidic-Basic-and-Neutral.pdf
Sandeep Swamy
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Marie Boran Special Collections Librarian Hardiman Library, University of Gal...
Library Association of Ireland
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
Presentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem KayaPresentation of the MIPLM subject matter expert Erdem Kaya
Presentation of the MIPLM subject matter expert Erdem Kaya
MIPLM
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
Unit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdfUnit 6_Introduction_Phishing_Password Cracking.pdf
Unit 6_Introduction_Phishing_Password Cracking.pdf
KanchanPatil34
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
Quality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdfQuality Contril Analysis of Containers.pdf
Quality Contril Analysis of Containers.pdf
Dr. Bindiya Chauhan
 

16 asp.net session23

  • 1. Developing Web Applications Using ASP.NET In this session, you will learn to: Create connected Web Parts Objectives
  • 2. Developing Web Applications Using ASP.NET 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. Demo: Building Web Part Pages and Web Parts
  • 3. Developing Web Applications Using ASP.NET 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. Demo: Building Web Part Pages and Web Parts (Contd.)
  • 4. Developing Web Applications Using ASP.NET List the types of Web sites that can be created using Visual Studio 2005. Test Your Understanding Answer: Local IIS Web site File System Web site FTP site Remote Web site
  • 5. Developing Web Applications Using ASP.NET What are the levels at which errors can be handled in a Microsoft ASP.NET Web Application? Test Your Understanding 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.
  • 6. Developing Web Applications Using ASP.NET List the methods that can be used to add Web server controls to Web forms. Test Your Understanding 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.
  • 7. Developing Web Applications Using ASP.NET Which attribute needs to be included in the <%@Page%> directive in a content page that references a master page? Test Your Understanding Answer: MasterPageFile
  • 8. Developing Web Applications Using ASP.NET List three important events exposed by the Application object. Test Your Understanding Answer: Appliaction.Start Appliation.End Application.Error
  • 9. Developing Web Applications Using ASP.NET What is the basic procedure for displaying data from a relational database on a Web pages? Test Your Understanding Answer: To display data from a relational database on a Web page, you need to: 1. Add a data source control to the Web page, and then configure it to connect to the required database. 2. Specify the SELECT statement in the SelectCommand property of the data source control to retrieve the data. 3. Bind data controls or data-aware controls to the data source control.
  • 10. Developing Web Applications Using ASP.NET What is the use of the two special values, “*” and “?” in authorization module to control access of a directory in the Web site hierarchy? Test Your Understanding 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.
  • 11. Developing Web Applications Using ASP.NET Which utility enables a user to deploy a compiled Web site without needing to copy the source files? Test Your Understanding Answer: The Publish Web Site Utility
  • 12. Developing Web Applications Using ASP.NET Which property of the HttpBrowserCapabilities object contains information about the browser that initiated the request? Test Your Understanding Answer: Request.Browser
  • 13. Developing Web Applications Using ASP.NET Resource files for Implicit localization are stored in the ____________ directory and those for explicit localization are stored in the ____________ directory. Test Your Understanding Answer: App_LocalResources App_GlobalResources
  • 14. Developing Web Applications Using ASP.NET User controls are saved with an extension of __________ and use the __________ directive instead of the <%@Page %> directive. Test Your Understanding Answer: .ascx <%@Control%>
  • 15. Developing Web Applications Using ASP.NET How can you cache multiple versions of a page? Test Your Understanding Answer: Multiple versions of a page can be cached by using the varybyparam attribute in the <%@OutputCache%> directive.
  • 16. Developing Web Applications Using ASP.NET Which event handler can be used to set the ASP.NET theme at run time? Test Your Understanding Answer: Page_PreInit
  • 17. Developing Web Applications Using ASP.NET List the five standard display modes in the Web parts control set. Test Your Understanding Answer: Browse mode Design mode Edit mode Catalog display mode Connection display mode