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


                In this session, you will learn to:
                   Create and retrieve database connections by using the
                   Web.Config file
                   Access relational data by using the SqlDataSource control and
                   data controls
                   Access XML data by using the XmlDataSource control and
                   data controls
                   Access objects as data by using the ObjectDataSource control
                   and data controls




     Ver. 1.0                                                            Slide 1 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data


                Problem Statement:
                   You are a developer in the Adventure Works organization, a
                   fictitious bicycle manufacturer. You have been asked to assist
                   in the development of the 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.




     Ver. 1.0                                                            Slide 2 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data (Contd.)


                As part of the first phase of the B2C development, you have
                been asked to implement prototypes of pages that display and
                manipulate data from the AdventureWorks database.You have
                also been asked to implement prototypes of pages that display
                and manipulate data from custom object data sources and
                XML data from the TrailReport Web service.




     Ver. 1.0                                                         Slide 3 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data (Contd.)


                Solution:
                 – To solve this problem, you need to perform following tasks:
                    1. Create and Retrieve Database Connections
                        a. Add a connection string for the AdventureWorks database to the
                           Web.Config file.
                        b. Programmatically retrieve the connection to the AdventureWorks
                           database.
                        c. Programmatically open the connection and verify that it is open.
                        d. Test the database connectivity.




     Ver. 1.0                                                                           Slide 4 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data (Contd.)


                1. Access Data by Using SqlDataSource Controls and Data Controls
                    a.   Add a SqlDataSource control to the Products page.
                    b.   Set connection properties for the SqlDataSource control.
                    c.   Bind a DropDownList control to the SqlDataSource control.
                    d.   Add and configure a Subcategories GridView control with an
                         associated SqlDataSource control.
                    e.   Define the columns for the gvwSubcategories control.
                    f.   Add and configure a Products GridView control and associated
                         SqlDataSource control.
                    g.   Define columns and templates for the gvwProduct GridView control.
                    h.   Add and configure a Product Details DetailsView control and
                         associated SqlDataSource control.
                    i.   Add a DataList control to the ProductDetails.aspx page.
                    j.   Add an SqlDataSourceControl to the page.
                    k.   Run and test the Web application.




     Ver. 1.0                                                                       Slide 5 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data (Contd.)


                1. Access Objects as Data with ObjectDataSource Controls
                    a.   Review the data-access code in the business object.
                    b.   Configure an ObjectDataSource control for business-data access.
                    c.   Add and configure a FormView control.
                    d.   Define the EmptyDataTemplate element for the FormView control.
                    e.   Define the ItemTemplate element for the FormView control.
                    f.   Define the InsertItemTemplate element for the FormView control.
                    g.   Add code to the Inserting event of the FormView control.
                    h.   Run and test the Web application.




     Ver. 1.0                                                                      Slide 6 of 7
Developing Web Applications Using ASP.NET
Demo: Accessing and Displaying Data (Contd.)


                1. Access XML Data by Using XmlDataSource Controls
                   a.   Add an XmlDataSource object to the TrailReport.aspx page.
                   b.   Add and configure a TreeView control for the TrailReport.aspx page.
                   c.   Add code to an event procedure for the TreeView control.
                   d.   Add code for the Page_Load event of the TrailReport.aspx page.
                   e.   Test the XML data handling of the Web application.




     Ver. 1.0                                                                       Slide 7 of 7

More Related Content

What's hot

Comparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAsComparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
MVVM & Data Binding Library
MVVM & Data Binding Library MVVM & Data Binding Library
MVVM & Data Binding Library
10Clouds
 
Using And Extending The DotNetNuke Widget Framework
Using And Extending The DotNetNuke Widget FrameworkUsing And Extending The DotNetNuke Widget Framework
Using And Extending The DotNetNuke Widget Framework
Nik Kalyani
 
SharePoint Conference 2018 - APIs, APIs everywhere!
SharePoint Conference 2018 - APIs, APIs everywhere!SharePoint Conference 2018 - APIs, APIs everywhere!
SharePoint Conference 2018 - APIs, APIs everywhere!
Sébastien Levert
 
Data Binding in Action using MVVM pattern
Data Binding in Action using MVVM patternData Binding in Action using MVVM pattern
Data Binding in Action using MVVM pattern
Fabio Collini
 
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
Infinum
 
Deep dive into Android Data Binding
Deep dive into Android Data BindingDeep dive into Android Data Binding
Deep dive into Android Data Binding
Radek Piekarz
 

What's hot (7)

Comparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAsComparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAs
 
MVVM & Data Binding Library
MVVM & Data Binding Library MVVM & Data Binding Library
MVVM & Data Binding Library
 
Using And Extending The DotNetNuke Widget Framework
Using And Extending The DotNetNuke Widget FrameworkUsing And Extending The DotNetNuke Widget Framework
Using And Extending The DotNetNuke Widget Framework
 
SharePoint Conference 2018 - APIs, APIs everywhere!
SharePoint Conference 2018 - APIs, APIs everywhere!SharePoint Conference 2018 - APIs, APIs everywhere!
SharePoint Conference 2018 - APIs, APIs everywhere!
 
Data Binding in Action using MVVM pattern
Data Binding in Action using MVVM patternData Binding in Action using MVVM pattern
Data Binding in Action using MVVM pattern
 
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
Infinum Android Talks #14 - Data binding to the rescue... or not (?) by Krist...
 
Deep dive into Android Data Binding
Deep dive into Android Data BindingDeep dive into Android Data Binding
Deep dive into Android Data Binding
 

Viewers also liked

06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Niit Care
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Niit Care
 
Presentación junio
Presentación junioPresentación junio
Presentación junio
La Guía Más Útil
 
simple present tense
simple present tensesimple present tense
simple present tense
karwinda
 
Presentación1
Presentación1Presentación1
Presentación1
pipe-alejo
 
CacharreAndo
CacharreAndoCacharreAndo
CacharreAndo
YcRF
 
Idocaedro aplicacion
Idocaedro aplicacionIdocaedro aplicacion
Idocaedro aplicacion
Anni Lovee
 
Mantenimiento de computo
Mantenimiento de computoMantenimiento de computo
Mantenimiento de computosebassevitas
 
Shizuoka pref public_library(20101020)
Shizuoka pref public_library(20101020)Shizuoka pref public_library(20101020)
Shizuoka pref public_library(20101020)真 岡本
 
Presentación del sistema genesis y portal institucional j a
Presentación del sistema genesis y portal institucional j aPresentación del sistema genesis y portal institucional j a
Presentación del sistema genesis y portal institucional j a
felipegomezg
 
Mi materia preferida
Mi materia preferidaMi materia preferida
Mi materia preferida
Alex Sandercito
 
159267237 extractos-alquimicos
159267237 extractos-alquimicos159267237 extractos-alquimicos
159267237 extractos-alquimicos
geogomes the best
 
Otsuma(2010727)
Otsuma(2010727)Otsuma(2010727)
Otsuma(2010727)真 岡本
 
Jadwal kegiatan ujian smk muhammadiyah 1
Jadwal kegiatan ujian smk muhammadiyah 1Jadwal kegiatan ujian smk muhammadiyah 1
Jadwal kegiatan ujian smk muhammadiyah 1
heri baskoro
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Niit Care
 
FEA Final Report - Jawanza Bassue
FEA Final Report - Jawanza BassueFEA Final Report - Jawanza Bassue
FEA Final Report - Jawanza Bassue
Jawanza Bassue
 
High Altitude Research Plane_Jawanza Bassue
High Altitude Research Plane_Jawanza BassueHigh Altitude Research Plane_Jawanza Bassue
High Altitude Research Plane_Jawanza Bassue
Jawanza Bassue
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06
Niit Care
 
02 penyusunan rpp
02 penyusunan rpp02 penyusunan rpp
02 penyusunan rpp
heri baskoro
 
Ki kd tkj kelas x xi dan xii
Ki kd tkj kelas x xi dan xiiKi kd tkj kelas x xi dan xii
Ki kd tkj kelas x xi dan xii
heri baskoro
 

Viewers also liked (20)

06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Presentación junio
Presentación junioPresentación junio
Presentación junio
 
simple present tense
simple present tensesimple present tense
simple present tense
 
Presentación1
Presentación1Presentación1
Presentación1
 
CacharreAndo
CacharreAndoCacharreAndo
CacharreAndo
 
Idocaedro aplicacion
Idocaedro aplicacionIdocaedro aplicacion
Idocaedro aplicacion
 
Mantenimiento de computo
Mantenimiento de computoMantenimiento de computo
Mantenimiento de computo
 
Shizuoka pref public_library(20101020)
Shizuoka pref public_library(20101020)Shizuoka pref public_library(20101020)
Shizuoka pref public_library(20101020)
 
Presentación del sistema genesis y portal institucional j a
Presentación del sistema genesis y portal institucional j aPresentación del sistema genesis y portal institucional j a
Presentación del sistema genesis y portal institucional j a
 
Mi materia preferida
Mi materia preferidaMi materia preferida
Mi materia preferida
 
159267237 extractos-alquimicos
159267237 extractos-alquimicos159267237 extractos-alquimicos
159267237 extractos-alquimicos
 
Otsuma(2010727)
Otsuma(2010727)Otsuma(2010727)
Otsuma(2010727)
 
Jadwal kegiatan ujian smk muhammadiyah 1
Jadwal kegiatan ujian smk muhammadiyah 1Jadwal kegiatan ujian smk muhammadiyah 1
Jadwal kegiatan ujian smk muhammadiyah 1
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
FEA Final Report - Jawanza Bassue
FEA Final Report - Jawanza BassueFEA Final Report - Jawanza Bassue
FEA Final Report - Jawanza Bassue
 
High Altitude Research Plane_Jawanza Bassue
High Altitude Research Plane_Jawanza BassueHigh Altitude Research Plane_Jawanza Bassue
High Altitude Research Plane_Jawanza Bassue
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06
 
02 penyusunan rpp
02 penyusunan rpp02 penyusunan rpp
02 penyusunan rpp
 
Ki kd tkj kelas x xi dan xii
Ki kd tkj kelas x xi dan xiiKi kd tkj kelas x xi dan xii
Ki kd tkj kelas x xi dan xii
 

Similar to 07 asp.net session10

07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
Mani Chaubey
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
Vivek chan
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Mani Chaubey
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Vivek chan
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Vivek chan
 
Building richwebapplicationsusingasp
Building richwebapplicationsusingaspBuilding richwebapplicationsusingasp
Building richwebapplicationsusingasp
Giovanni Javier Jimenez Cadena
 
java Developing using asp.net
java Developing using asp.netjava Developing using asp.net
java Developing using asp.net
Tanay Kishore Mishra
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
Niit Care
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
Niit Care
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
Vivek chan
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
Julie Iskander
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
Bhavin Shah
 
Cognos Software Development Kit
Cognos Software Development KitCognos Software Development Kit
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Mani Chaubey
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Sparkhound Inc.
 
32916
3291632916
70-494 it examen braindumps
70-494 it examen braindumps70-494 it examen braindumps
70-494 it examen braindumps
lilylucy
 
Work with data in ASP.NET
Work with data in ASP.NETWork with data in ASP.NET
Work with data in ASP.NET
Peter Gfader
 
Mvc summary
Mvc summaryMvc summary
Mvc summary
Muhammad Younis
 
seminar
seminarseminar
seminar
ram007inter
 

Similar to 07 asp.net session10 (20)

07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
 
07 asp.net session10
07 asp.net session1007 asp.net session10
07 asp.net session10
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Building richwebapplicationsusingasp
Building richwebapplicationsusingaspBuilding richwebapplicationsusingasp
Building richwebapplicationsusingasp
 
java Developing using asp.net
java Developing using asp.netjava Developing using asp.net
java Developing using asp.net
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
14 asp.net session20
14 asp.net session2014 asp.net session20
14 asp.net session20
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
Cognos Software Development Kit
Cognos Software Development KitCognos Software Development Kit
Cognos Software Development Kit
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
Optimizing Code Reusability for SharePoint using Linq to SharePoint & the MVP...
 
32916
3291632916
32916
 
70-494 it examen braindumps
70-494 it examen braindumps70-494 it examen braindumps
70-494 it examen braindumps
 
Work with data in ASP.NET
Work with data in ASP.NETWork with data in ASP.NET
Work with data in ASP.NET
 
Mvc summary
Mvc summaryMvc summary
Mvc summary
 
seminar
seminarseminar
seminar
 

More from Niit Care

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

More from 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
 

Recently uploaded

[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
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
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
 
High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024
Vadym Kazulkin
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
LizaNolte
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
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
 
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
 
"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
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
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
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
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
 

Recently uploaded (20)

[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...
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
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
 
High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024High performance Serverless Java on AWS- GoTo Amsterdam 2024
High performance Serverless Java on AWS- GoTo Amsterdam 2024
 
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillinQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
inQuba Webinar Mastering Customer Journey Management with Dr Graham Hill
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
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
 
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
 
"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
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
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...
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
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
 

07 asp.net session10

  • 1. Developing Web Applications Using ASP.NET Objectives In this session, you will learn to: Create and retrieve database connections by using the Web.Config file Access relational data by using the SqlDataSource control and data controls Access XML data by using the XmlDataSource control and data controls Access objects as data by using the ObjectDataSource control and data controls Ver. 1.0 Slide 1 of 7
  • 2. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data Problem Statement: You are a developer in the Adventure Works organization, a fictitious bicycle manufacturer. You have been asked to assist in the development of the 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. Ver. 1.0 Slide 2 of 7
  • 3. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data (Contd.) As part of the first phase of the B2C development, you have been asked to implement prototypes of pages that display and manipulate data from the AdventureWorks database.You have also been asked to implement prototypes of pages that display and manipulate data from custom object data sources and XML data from the TrailReport Web service. Ver. 1.0 Slide 3 of 7
  • 4. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data (Contd.) Solution: – To solve this problem, you need to perform following tasks: 1. Create and Retrieve Database Connections a. Add a connection string for the AdventureWorks database to the Web.Config file. b. Programmatically retrieve the connection to the AdventureWorks database. c. Programmatically open the connection and verify that it is open. d. Test the database connectivity. Ver. 1.0 Slide 4 of 7
  • 5. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data (Contd.) 1. Access Data by Using SqlDataSource Controls and Data Controls a. Add a SqlDataSource control to the Products page. b. Set connection properties for the SqlDataSource control. c. Bind a DropDownList control to the SqlDataSource control. d. Add and configure a Subcategories GridView control with an associated SqlDataSource control. e. Define the columns for the gvwSubcategories control. f. Add and configure a Products GridView control and associated SqlDataSource control. g. Define columns and templates for the gvwProduct GridView control. h. Add and configure a Product Details DetailsView control and associated SqlDataSource control. i. Add a DataList control to the ProductDetails.aspx page. j. Add an SqlDataSourceControl to the page. k. Run and test the Web application. Ver. 1.0 Slide 5 of 7
  • 6. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data (Contd.) 1. Access Objects as Data with ObjectDataSource Controls a. Review the data-access code in the business object. b. Configure an ObjectDataSource control for business-data access. c. Add and configure a FormView control. d. Define the EmptyDataTemplate element for the FormView control. e. Define the ItemTemplate element for the FormView control. f. Define the InsertItemTemplate element for the FormView control. g. Add code to the Inserting event of the FormView control. h. Run and test the Web application. Ver. 1.0 Slide 6 of 7
  • 7. Developing Web Applications Using ASP.NET Demo: Accessing and Displaying Data (Contd.) 1. Access XML Data by Using XmlDataSource Controls a. Add an XmlDataSource object to the TrailReport.aspx page. b. Add and configure a TreeView control for the TrailReport.aspx page. c. Add code to an event procedure for the TreeView control. d. Add code for the Page_Load event of the TrailReport.aspx page. e. Test the XML data handling of the Web application. Ver. 1.0 Slide 7 of 7