SlideShare una empresa de Scribd logo
1 de 33
Developing Database Applications Using ADO.NET and XML
Objectives


                In this session, you will learn to:
                   Implement data binding to display values on the controls of a
                   Windows form
                   Filter the data to display the selected records




     Ver. 1.0                      Session 2                              Slide 1 of 33
Developing Database Applications Using ADO.NET and XML
Introducing Data Binding


                Data binding is the ability to bind some elements of a data
                source with the controls of a Windows form.
                The following figure shows binding of employee name field
                with the text box control of a Windows form to display data.




                On the basis of the number of bound values that can be
                displayed through a control of a Windows form, binding can
                be classified into:
                   Simple data binding
                   Complex data binding
     Ver. 1.0                     Session 2                           Slide 2 of 33
Developing Database Applications Using ADO.NET and XML
Simple Data Binding


                Simple data binding is the process of binding a control, such
                as a text box or a label, to a single value in a dataset.
                The dataset value can be bound to the control by using the
                properties of the control.
                Consider an example where you need to perform simple
                data binding on the following Windows form to display the
                monthly salary details of an employee.




     Ver. 1.0                     Session 2                          Slide 3 of 33
Developing Database Applications Using ADO.NET and XML
Simple Data Binding (Contd.)


                To perform simple data binding, you need to perform the
                following steps:
                – Select ViewProperties Window to open the Properties
                  window.
                – Select the first text box to display its properties in the
                  Properties window.
                – Expand the (Data Bindings) property.
                – Select the Text property to enable the drop-down list. Click the
                  drop-down list.
                – Click the Add Project Data Source in the drop-down list.
                – Create a connection with the HR database and select the
                  MonthlySalary table.
                – Expand the Other Data SourcesProject Data
                  SourcesHRDataSetMonthlySalary nodes and select the
                  cEmployeeCode column. This binds the data of this column in
                  the first text box and creates monthlySalaryBindingSource.
     Ver. 1.0                     Session 2                              Slide 4 of 33
Developing Database Applications Using ADO.NET and XML
Simple Data Binding (Contd.)


                •   Select the second text box.
                •   Expand the (DataBindings) property.
                •   Select the Text property to enable the drop-down list.
                •   Expand monthlySalaryBindingsource node and select
                    mMonthlySalary column to bind second text box.
                •   Similarly, bind dPayDate, and mReferralBonus columns to
                    the third and fourth text boxes, respectively.




     Ver. 1.0                     Session 2                           Slide 5 of 33
Developing Database Applications Using ADO.NET and XML
Simple Data Binding (Contd.)


                •   Press F5 or select DebugStart Debugging to run the
                    Windows form. The final output is displayed, as shown in the
                    following figure.




     Ver. 1.0                      Session 2                              Slide 6 of 33
Developing Database Applications Using ADO.NET and XML
Complex Data Binding


                Complex data binding is the process of binding a component, such
                as a DataGridView control or a ListBox control, to display multiple
                values from a dataset.
                The following table describes the controls that are generally used
                to bind data from a database to a Windows form.

                Control      Description
                ListBox      This control is used to display data for a column from multiple
                             records of a dataset. The DataSource property of the ListBox
                             control is used to bind the control to a data source, such as a
                             DataSet or DataTable. The DisplayMember property of the
                             ListBox control is used to bind the control to a specific data
                             element, such as a column of a DataTable.
                ComboBox     This control has two parts, a text box for entering data and a
                             drop-down list box for displaying the data. The DataSource
                             property of the ComboBox control is used to bind the control to a
                             DataSource, such as DataSet or DataTable. The DisplayMember
                             property of the ComboBox control is used to bind the control to a
                             specific data element, such as a column of a DataTable.


     Ver. 1.0                        Session 2                                          Slide 7 of 33
Developing Database Applications Using ADO.NET and XML
Complex Data Binding (Contd.)



                Control        Description
                DataGridView   This control can display data from multiple records as well as
                               multiple columns. The DataSource property of the DataGridView
                               control is used to bind the to a specific data element, such as a
                               column of a DataTable.




     Ver. 1.0                           Session 2                                        Slide 8 of 33
Developing Database Applications Using ADO.NET and XML
Complex Data Binding (Contd.)


                For example, the following figure displays employee details,
                stored in the AdventureWorks database, in a grid format by
                using the DataGridView control.




     Ver. 1.0                    Session 2                           Slide 9 of 33
Developing Database Applications Using ADO.NET and XML
Just a minute


                Which of the following controls is used to perform simple
                data binding:
                 1.   Label
                 2.   Combo Box
                 3.   List Box
                 4.   DataGridView




                Answer:
                 1. Label



     Ver. 1.0                        Session 2                       Slide 10 of 33
Developing Database Applications Using ADO.NET and XML
Navigating Between Records


                For every data source that is bound to a Windows Form
                control, there exists a BindingNavigator control.
                The BindingaNavigator control handles the binding to the
                data source by keeping a pointer to the current item in the
                record list.
                The following figure illustrates the relationship between the
                BindingNavigator control and a Windows form.

                                   BindingNavigator 1   DATA SOURCE 1
                 Windows Form
                   Control 1
                   Control 2       BindingNavigator 2   DATA SOURCE 2
                   Control 3
                                   BindingNavigator 3   DATA SOURCE 3




     Ver. 1.0                     Session 2                             Slide 11 of 33
Developing Database Applications Using ADO.NET and XML
Navigating Between Records (Contd.)


                The BindingNavigator control is frequently used with the
                BindingSource control to enable users to navigate through
                data records on a form and interact with the records.
                The following figure displays the BindingNavigator control
                and the BindingSource control displayed in a Windows form.




     Ver. 1.0                    Session 2                        Slide 12 of 33
Developing Database Applications Using ADO.NET and XML
Navigating Between Records (Contd.)


                The BindingNavigator control has various controls for
                modifying the data source.
                The following table describes the various controls, their
                symbols, and functions in the BindingNavigator control.
                Control                           Symbol   Function
                bindingNavigatorAddNewItem                 Inserts a new row to the data
                button                                     source.
                bindingNavigatorDeleteItem                 Deletes the current row from the
                button                                     data source.
                bindingNavigatorMoveFirstItem              Moves to the first item in the data
                button                                     source.
                bindingNavigatorMoveLastItem               Moves to the last item in the data
                button                                     source.
                bindingNavigatorMoveNextIte                Moves to the next item in the data
                m button                                   source.




     Ver. 1.0                         Session 2                                            Slide 13 of 33
Developing Database Applications Using ADO.NET and XML
Navigating Between Records (Contd.)



                Control                              Symbol   Function
                bindingNavigatorMovePreviousItem              Moves to the previous item in the
                button                                        data source.
                bindingNavigatorPositionItem text             Returns the current position within
                box                                           the data source.
                bindingNavigatorCountItem text box            Returns the total number of items
                                                              in the data source.




     Ver. 1.0                           Session 2                                       Slide 14 of 33
Developing Database Applications Using ADO.NET and XML
Just a minute


                Which control of the BindingNavigator returns the current
                position within the data source?
                 1.   bindingNavigatorMoveFirstItem button
                 2.   bindingNavigatorPositionItem text box
                 3.   bindingNavigatorMoveLastItem button
                 4.   bindingNavigatorCountItem text box




                Answer:
                 2. bindingNavigatorPositionItem text box



     Ver. 1.0                       Session 2                       Slide 15 of 33
Developing Database Applications Using ADO.NET and XML
Demo: Implementing Data Binding


               Problem Statement:
                  Peter Parkinson is the HR Vice President at Tebisco, a leading
                  producer and distributor of snacks in the United States. Peter
                  needs to view the details of various departments functioning in
                  the organization in a customized format, as shown in the
                  following figure.




    Ver. 1.0                      Session 2                              Slide 16 of 33
Developing Database Applications Using ADO.NET and XML
Demo: Implementing Data Binding (Contd.)


                As part of the development team, you need to retrieve the
                department details for Peter, in the preceding format.

                Hint: You need to refer to the Department table of the HR
                database.




     Ver. 1.0                  Session 2                              Slide 17 of 33
Developing Database Applications Using ADO.NET and XML
Just a minute


                _______ control handles the binding to the data source by
                keeping a pointer to the current item in the record list.
                1.   bindingNavigatorPositionItem
                2.   BindingSource
                3.   BindingNavigator
                4.   DataGridView




                Answer:
                3. BindingNavigator



     Ver. 1.0                      Session 2                       Slide 18 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data


                There may be a situation where you need to display only
                selective records. In such cases, you filter the data so as to
                display only the desired records.
                There are two methods for filtering data:
                   Creating parameterized queries.
                   Filtering data using controls of a Windows form.




     Ver. 1.0                      Session 2                           Slide 19 of 33
Developing Database Applications Using ADO.NET and XML
Creating Parameterized Queries


                For developers, stored procedures have always been the
                preferred method of data access from a database.
                Stored procedures provide the benefits of precompiled
                execution, reduced network traffic, efficient reuse of code,
                and enhanced security measures for the data stored in a
                database.
                However, a more secure way is to create parameterized
                queries.
                By using parameterized queries, data can be filtered based
                on the criterion entered by a user at run time.




     Ver. 1.0                     Session 2                          Slide 20 of 33
Developing Database Applications Using ADO.NET and XML
Creating Parameterized Queries (Contd.)


                The following code snippet shows how to setup and execute
                the parameterized query:
                SqlConnection con = new         Creating a connection string
                SqlConnection();
                con.ConnectionString =          Establishing a connection with the
                                                database
                "Data Source= SQLSERVER01;
                Initial Catalog=HR; User
                ID=sa; Password=niit#1234";
                con.Open();
                string serachemployeecode;
                searchemployeecode =            textBox1 contains value of
                                                employeecode for which data needs
                textBox1.Text;                  to be extracted from database




     Ver. 1.0                   Session 2                                Slide 21 of 33
Developing Database Applications Using ADO.NET and XML
Creating Parameterized Queries (Contd.)



                                            Setting up the SQL statement to be
                string query = "SELECT *    executed
                FROM MonthlySalary WHERE
                cemployeeCode =
                @employeecode";             Initializing the command object to
                SqlCommand cmd = new        execute the connection

                SqlCommand(query, con);     Passing parameter objects
                cmd.Parameters.Add(new
                SqlParameter("@employeeco
                de", searchempcode));       Executing the command and returning
                SqlDataReader dr =          the DataReader
                cmd.ExecuteReader();




     Ver. 1.0                Session 2                               Slide 22 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form


                After the data is retrieved from a data source, you can filter
                this data to view selective records.
                This filtering can be done by either passing parameterized
                queries or by using controls in a Windows form.
                Consider an example, where the sales manager of an
                organization wants to view the sales information of various
                stores in a grid format. This data can be displayed by
                establishing the connection to the database and binding the
                data by using the DataGridView control, as shown in the
                following figure.




     Ver. 1.0                     Session 2                           Slide 23 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form (Contd.)


                •   FillBy is a TableAdapter query. TableAdapter queries are
                    SQL statements or stored procedures that an application
                    can execute against a database.
                •   You can execute TableAdapter queries by calling the
                    FillBy() method code that appears in the Click event of
                    the FillByToolStrip control.
                •   The FillBy() method populates the data from a data
                    source in a datatable. This method can also return a new
                    datatable populated with the data returned by a
                    TableAdapter query.
                •   In addtition to FillByToolStrip control, you can also filter the
                    data using the DataView control of a Windows form.
                •   A DataView control creates a customized view of the data
                    stored in a datatable. By default, every table has a data
                    view attached to it.
     Ver. 1.0                          Session 2                             Slide 24 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form (Contd.)


                •   You add and bind a DataView control to a Windows form to
                    create a customized view of the data that filter records
                    according to some criterion.
                •   To add a DataView control to a Windows form, you need to
                    perform the following steps:
                    1. Drag the DataView control from the All Windows Form
                       drop-down list box of the Toolbox pane to the Windows form.
                       If the DataView control is not visible in the toolbox, you can
                       right-click the Toolbox window and select Choose Items
                       option from the drop-down list box. This will open the Choose
                       Toolbox Items dialog box. Check the DataView option from
                       the .NET Framework Components tab in the dialog box. This
                       will make the DataView control visible in the toolbox.




     Ver. 1.0                         Session 2                             Slide 25 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form (Contd.)


                2. Set the properties for the DataView control in the Properties
                   window. The following table describes the various properties
                   of the DataView control.

                 Property               Description
                 Allow Delete, Allow    These properties are used to specify whether the
                 Add, and Allow Edit    records can be added, deleted, or edited respectively.
                 ApplyDefaultSort       This property is used to specify the default sort, if the
                                        Sort property is not set.
                 GenerateMember         This property specifies if a member variable will be
                                        generated for the control.
                 Modifiers              This property specifies the visibility level of the
                                        DataView object.
                 RowFilter              This property is used to specify an
                                        expression/condition in a string format used to filter
                                        the records. The records that satisfy the condition will
                                        only be included in the view.



     Ver. 1.0                       Session 2                                            Slide 26 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form (Contd.)



                Property         Description
                RowStateFilter   This property specifies the versions of data returned by this
                                 DataView.
                Sort             This property is used to specify an expression on the basis of
                                 which the records will be sorted. The expression includes the
                                 column name and the sort qualifier, which is ASC or DESC, to
                                 display the records in the ascending or descending order .
                Table            This property is used to specify the DataTable to which the
                                 data view would refer. The property can be set either at
                                 design time or run time.




     Ver. 1.0                      Session 2                                          Slide 27 of 33
Developing Database Applications Using ADO.NET and XML
Filtering Data Using Controls of a Windows Form (Contd.)


                The DataView control and its properties are displayed in the
                following figure.




     Ver. 1.0                    Session 2                          Slide 28 of 33
Developing Database Applications Using ADO.NET and XML
Just a minute


                Which property of the DataView control specifies an
                expression/condition in a string format to filter the records?
                 1.   Modifiers
                 2.   RowStateFilter
                 3.   Sort
                 4.   RowFilter




                Answer:
                 4. RowFilter



     Ver. 1.0                     Session 2                            Slide 29 of 33
Developing Database Applications Using ADO.NET and XML
Just a minute


                Which property of the DataView control specifies the
                versions of data returned by a DataView?
                 1.   Table
                 2.   AllowEdit
                 3.   RowStateFilter
                 4.   GenerateMembers




                Answer:
                 3. RowStateFilter



     Ver. 1.0                    Session 2                             Slide 30 of 33
Developing Database Applications Using ADO.NET and XML
Demo: Implementing Filtering of Data


                Problem Statement:
                   Robert Smith, the HR Manager of Tebisco, needs to view the
                   candidate code, employee code, internal job posting code,
                   position code applied for, date of application, test date, test
                   score, interview date, interviewer, interview comments, rating,
                   status, and test scores of candidates who scored in the top two
                   ranges (between 90-100 and between 80-90). As a developer
                   in the organization, you need to design an application that will
                   display the required details.

                   Hint: You need to refer to the InternalCandidate table of the
                   HR database.




     Ver. 1.0                      Session 2                              Slide 31 of 33
Developing Database Applications Using ADO.NET and XML
Summary


               In this session, you learned that:
                  Data binding is the ability to bind some elements of a data
                  source with the controls of a Windows Form.
                  Data binding is of two types:
                    Simple data binding
                    Complex data binding
                 Simple data binding is the process of binding a control, such as
                  a textbox or a label, to a value in a dataset.
                 Complex data binding is the process of binding a component,
                  such as a DataGridView control or a ListBox control, to display
                  the values of multiple columns from a dataset.




    Ver. 1.0                      Session 2                              Slide 32 of 33
Developing Database Applications Using ADO.NET and XML
Summary (Contd.)


                 The data can be filtered to display only the desired records.
                 There are two methods for filtering data:
                   Creating parameterized queries.
                   Filtering data using controls of a Windows form.
                By using parameterized queries, data can be filtered based on
                 the criterion entered by a user at run time.
                FillByToolStrip and DataView controls in a Windows form can
                 be used to filter the data to view selective records.




    Ver. 1.0                      Session 2                              Slide 33 of 33

Más contenido relacionado

La actualidad más candente

Introduction to ado
Introduction to adoIntroduction to ado
Introduction to ado
Harman Bajwa
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
Zishan yousaf
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql server
Ammara Arooj
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
Mubarak Hussain
 

La actualidad más candente (20)

Dealing with SQL Security from ADO.NET
Dealing with SQL Security from ADO.NETDealing with SQL Security from ADO.NET
Dealing with SQL Security from ADO.NET
 
Ado.net
Ado.netAdo.net
Ado.net
 
ASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NETASP.NET 09 - ADO.NET
ASP.NET 09 - ADO.NET
 
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to ado
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
 
Ado.net
Ado.netAdo.net
Ado.net
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Disconnected Architecture and Crystal report in VB.NET
Disconnected Architecture and Crystal report in VB.NETDisconnected Architecture and Crystal report in VB.NET
Disconnected Architecture and Crystal report in VB.NET
 
Unit4
Unit4Unit4
Unit4
 
2310 b 09
2310 b 092310 b 09
2310 b 09
 
Intake 38 10
Intake 38 10Intake 38 10
Intake 38 10
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net Architecture
 
JAM819 - Native API Deep Dive: Data Storage and Retrieval
JAM819 - Native API Deep Dive: Data Storage and RetrievalJAM819 - Native API Deep Dive: Data Storage and Retrieval
JAM819 - Native API Deep Dive: Data Storage and Retrieval
 
PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#PATTERNS07 - Data Representation in C#
PATTERNS07 - Data Representation in C#
 
Web based database application design using vb.net and sql server
Web based database application design using vb.net and sql serverWeb based database application design using vb.net and sql server
Web based database application design using vb.net and sql server
 
Intake 38 data access 1
Intake 38 data access 1Intake 38 data access 1
Intake 38 data access 1
 
Ado dot net complete meterial (1)
Ado dot net complete meterial (1)Ado dot net complete meterial (1)
Ado dot net complete meterial (1)
 
Graph db as metastore
Graph db as metastoreGraph db as metastore
Graph db as metastore
 
ADO CONTROLS - Database usage
ADO CONTROLS - Database usageADO CONTROLS - Database usage
ADO CONTROLS - Database usage
 

Destacado (6)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Deawsj 7 ppt-1_a
Deawsj 7 ppt-1_aDeawsj 7 ppt-1_a
Deawsj 7 ppt-1_a
 
XML Schema Patterns for Databinding
XML Schema Patterns for DatabindingXML Schema Patterns for Databinding
XML Schema Patterns for Databinding
 
Attila_Hunics_IT
Attila_Hunics_ITAttila_Hunics_IT
Attila_Hunics_IT
 
Patterns in Eclipse
Patterns in EclipsePatterns in Eclipse
Patterns in Eclipse
 
VISUAL BASIC .net data accesss vii
VISUAL BASIC .net data accesss viiVISUAL BASIC .net data accesss vii
VISUAL BASIC .net data accesss vii
 

Similar a Ado.net session02

Vb.net session 06
Vb.net session 06Vb.net session 06
Vb.net session 06
Niit Care
 
Vb net xp_05
Vb net xp_05Vb net xp_05
Vb net xp_05
Niit Care
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winform
mrtom16071980
 
Vb.net session 16
Vb.net session 16Vb.net session 16
Vb.net session 16
Niit Care
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentals
Madhuri Kavade
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
Niit Care
 
Ado.net & data persistence frameworks
Ado.net & data persistence frameworksAdo.net & data persistence frameworks
Ado.net & data persistence frameworks
Luis Goldster
 

Similar a Ado.net session02 (20)

Vb.net session 06
Vb.net session 06Vb.net session 06
Vb.net session 06
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
 
Vb net xp_05
Vb net xp_05Vb net xp_05
Vb net xp_05
 
Databind in asp.net
Databind in asp.netDatabind in asp.net
Databind in asp.net
 
Session 7 Bai 7 ve winform
Session 7 Bai 7 ve winformSession 7 Bai 7 ve winform
Session 7 Bai 7 ve winform
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Simple ado program by visual studio
Simple ado program by visual studioSimple ado program by visual studio
Simple ado program by visual studio
 
Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 
Grid Vew Control VB
Grid Vew Control VBGrid Vew Control VB
Grid Vew Control VB
 
Vb.net session 16
Vb.net session 16Vb.net session 16
Vb.net session 16
 
Grid view control
Grid view controlGrid view control
Grid view control
 
unit 3.docx
unit 3.docxunit 3.docx
unit 3.docx
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentals
 
ASP.NET Lecture 4
ASP.NET Lecture 4ASP.NET Lecture 4
ASP.NET Lecture 4
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
 
Data Binding and Data Grid View Classes
Data Binding and Data Grid View ClassesData Binding and Data Grid View Classes
Data Binding and Data Grid View Classes
 
Ado.net
Ado.netAdo.net
Ado.net
 
06 asp.net session08
06 asp.net session0806 asp.net session08
06 asp.net session08
 
GRID VIEW PPT
GRID VIEW PPTGRID VIEW PPT
GRID VIEW PPT
 
Ado.net & data persistence frameworks
Ado.net & data persistence frameworksAdo.net & data persistence frameworks
Ado.net & data persistence frameworks
 

Más de Niit Care (20)

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
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
 

Último

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

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...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[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
 
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...
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
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
 

Ado.net session02

  • 1. Developing Database Applications Using ADO.NET and XML Objectives In this session, you will learn to: Implement data binding to display values on the controls of a Windows form Filter the data to display the selected records Ver. 1.0 Session 2 Slide 1 of 33
  • 2. Developing Database Applications Using ADO.NET and XML Introducing Data Binding Data binding is the ability to bind some elements of a data source with the controls of a Windows form. The following figure shows binding of employee name field with the text box control of a Windows form to display data. On the basis of the number of bound values that can be displayed through a control of a Windows form, binding can be classified into: Simple data binding Complex data binding Ver. 1.0 Session 2 Slide 2 of 33
  • 3. Developing Database Applications Using ADO.NET and XML Simple Data Binding Simple data binding is the process of binding a control, such as a text box or a label, to a single value in a dataset. The dataset value can be bound to the control by using the properties of the control. Consider an example where you need to perform simple data binding on the following Windows form to display the monthly salary details of an employee. Ver. 1.0 Session 2 Slide 3 of 33
  • 4. Developing Database Applications Using ADO.NET and XML Simple Data Binding (Contd.) To perform simple data binding, you need to perform the following steps: – Select ViewProperties Window to open the Properties window. – Select the first text box to display its properties in the Properties window. – Expand the (Data Bindings) property. – Select the Text property to enable the drop-down list. Click the drop-down list. – Click the Add Project Data Source in the drop-down list. – Create a connection with the HR database and select the MonthlySalary table. – Expand the Other Data SourcesProject Data SourcesHRDataSetMonthlySalary nodes and select the cEmployeeCode column. This binds the data of this column in the first text box and creates monthlySalaryBindingSource. Ver. 1.0 Session 2 Slide 4 of 33
  • 5. Developing Database Applications Using ADO.NET and XML Simple Data Binding (Contd.) • Select the second text box. • Expand the (DataBindings) property. • Select the Text property to enable the drop-down list. • Expand monthlySalaryBindingsource node and select mMonthlySalary column to bind second text box. • Similarly, bind dPayDate, and mReferralBonus columns to the third and fourth text boxes, respectively. Ver. 1.0 Session 2 Slide 5 of 33
  • 6. Developing Database Applications Using ADO.NET and XML Simple Data Binding (Contd.) • Press F5 or select DebugStart Debugging to run the Windows form. The final output is displayed, as shown in the following figure. Ver. 1.0 Session 2 Slide 6 of 33
  • 7. Developing Database Applications Using ADO.NET and XML Complex Data Binding Complex data binding is the process of binding a component, such as a DataGridView control or a ListBox control, to display multiple values from a dataset. The following table describes the controls that are generally used to bind data from a database to a Windows form. Control Description ListBox This control is used to display data for a column from multiple records of a dataset. The DataSource property of the ListBox control is used to bind the control to a data source, such as a DataSet or DataTable. The DisplayMember property of the ListBox control is used to bind the control to a specific data element, such as a column of a DataTable. ComboBox This control has two parts, a text box for entering data and a drop-down list box for displaying the data. The DataSource property of the ComboBox control is used to bind the control to a DataSource, such as DataSet or DataTable. The DisplayMember property of the ComboBox control is used to bind the control to a specific data element, such as a column of a DataTable. Ver. 1.0 Session 2 Slide 7 of 33
  • 8. Developing Database Applications Using ADO.NET and XML Complex Data Binding (Contd.) Control Description DataGridView This control can display data from multiple records as well as multiple columns. The DataSource property of the DataGridView control is used to bind the to a specific data element, such as a column of a DataTable. Ver. 1.0 Session 2 Slide 8 of 33
  • 9. Developing Database Applications Using ADO.NET and XML Complex Data Binding (Contd.) For example, the following figure displays employee details, stored in the AdventureWorks database, in a grid format by using the DataGridView control. Ver. 1.0 Session 2 Slide 9 of 33
  • 10. Developing Database Applications Using ADO.NET and XML Just a minute Which of the following controls is used to perform simple data binding: 1. Label 2. Combo Box 3. List Box 4. DataGridView Answer: 1. Label Ver. 1.0 Session 2 Slide 10 of 33
  • 11. Developing Database Applications Using ADO.NET and XML Navigating Between Records For every data source that is bound to a Windows Form control, there exists a BindingNavigator control. The BindingaNavigator control handles the binding to the data source by keeping a pointer to the current item in the record list. The following figure illustrates the relationship between the BindingNavigator control and a Windows form. BindingNavigator 1 DATA SOURCE 1 Windows Form Control 1 Control 2 BindingNavigator 2 DATA SOURCE 2 Control 3 BindingNavigator 3 DATA SOURCE 3 Ver. 1.0 Session 2 Slide 11 of 33
  • 12. Developing Database Applications Using ADO.NET and XML Navigating Between Records (Contd.) The BindingNavigator control is frequently used with the BindingSource control to enable users to navigate through data records on a form and interact with the records. The following figure displays the BindingNavigator control and the BindingSource control displayed in a Windows form. Ver. 1.0 Session 2 Slide 12 of 33
  • 13. Developing Database Applications Using ADO.NET and XML Navigating Between Records (Contd.) The BindingNavigator control has various controls for modifying the data source. The following table describes the various controls, their symbols, and functions in the BindingNavigator control. Control Symbol Function bindingNavigatorAddNewItem Inserts a new row to the data button source. bindingNavigatorDeleteItem Deletes the current row from the button data source. bindingNavigatorMoveFirstItem Moves to the first item in the data button source. bindingNavigatorMoveLastItem Moves to the last item in the data button source. bindingNavigatorMoveNextIte Moves to the next item in the data m button source. Ver. 1.0 Session 2 Slide 13 of 33
  • 14. Developing Database Applications Using ADO.NET and XML Navigating Between Records (Contd.) Control Symbol Function bindingNavigatorMovePreviousItem Moves to the previous item in the button data source. bindingNavigatorPositionItem text Returns the current position within box the data source. bindingNavigatorCountItem text box Returns the total number of items in the data source. Ver. 1.0 Session 2 Slide 14 of 33
  • 15. Developing Database Applications Using ADO.NET and XML Just a minute Which control of the BindingNavigator returns the current position within the data source? 1. bindingNavigatorMoveFirstItem button 2. bindingNavigatorPositionItem text box 3. bindingNavigatorMoveLastItem button 4. bindingNavigatorCountItem text box Answer: 2. bindingNavigatorPositionItem text box Ver. 1.0 Session 2 Slide 15 of 33
  • 16. Developing Database Applications Using ADO.NET and XML Demo: Implementing Data Binding Problem Statement: Peter Parkinson is the HR Vice President at Tebisco, a leading producer and distributor of snacks in the United States. Peter needs to view the details of various departments functioning in the organization in a customized format, as shown in the following figure. Ver. 1.0 Session 2 Slide 16 of 33
  • 17. Developing Database Applications Using ADO.NET and XML Demo: Implementing Data Binding (Contd.) As part of the development team, you need to retrieve the department details for Peter, in the preceding format. Hint: You need to refer to the Department table of the HR database. Ver. 1.0 Session 2 Slide 17 of 33
  • 18. Developing Database Applications Using ADO.NET and XML Just a minute _______ control handles the binding to the data source by keeping a pointer to the current item in the record list. 1. bindingNavigatorPositionItem 2. BindingSource 3. BindingNavigator 4. DataGridView Answer: 3. BindingNavigator Ver. 1.0 Session 2 Slide 18 of 33
  • 19. Developing Database Applications Using ADO.NET and XML Filtering Data There may be a situation where you need to display only selective records. In such cases, you filter the data so as to display only the desired records. There are two methods for filtering data: Creating parameterized queries. Filtering data using controls of a Windows form. Ver. 1.0 Session 2 Slide 19 of 33
  • 20. Developing Database Applications Using ADO.NET and XML Creating Parameterized Queries For developers, stored procedures have always been the preferred method of data access from a database. Stored procedures provide the benefits of precompiled execution, reduced network traffic, efficient reuse of code, and enhanced security measures for the data stored in a database. However, a more secure way is to create parameterized queries. By using parameterized queries, data can be filtered based on the criterion entered by a user at run time. Ver. 1.0 Session 2 Slide 20 of 33
  • 21. Developing Database Applications Using ADO.NET and XML Creating Parameterized Queries (Contd.) The following code snippet shows how to setup and execute the parameterized query: SqlConnection con = new Creating a connection string SqlConnection(); con.ConnectionString = Establishing a connection with the database "Data Source= SQLSERVER01; Initial Catalog=HR; User ID=sa; Password=niit#1234"; con.Open(); string serachemployeecode; searchemployeecode = textBox1 contains value of employeecode for which data needs textBox1.Text; to be extracted from database Ver. 1.0 Session 2 Slide 21 of 33
  • 22. Developing Database Applications Using ADO.NET and XML Creating Parameterized Queries (Contd.) Setting up the SQL statement to be string query = "SELECT * executed FROM MonthlySalary WHERE cemployeeCode = @employeecode"; Initializing the command object to SqlCommand cmd = new execute the connection SqlCommand(query, con); Passing parameter objects cmd.Parameters.Add(new SqlParameter("@employeeco de", searchempcode)); Executing the command and returning SqlDataReader dr = the DataReader cmd.ExecuteReader(); Ver. 1.0 Session 2 Slide 22 of 33
  • 23. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form After the data is retrieved from a data source, you can filter this data to view selective records. This filtering can be done by either passing parameterized queries or by using controls in a Windows form. Consider an example, where the sales manager of an organization wants to view the sales information of various stores in a grid format. This data can be displayed by establishing the connection to the database and binding the data by using the DataGridView control, as shown in the following figure. Ver. 1.0 Session 2 Slide 23 of 33
  • 24. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form (Contd.) • FillBy is a TableAdapter query. TableAdapter queries are SQL statements or stored procedures that an application can execute against a database. • You can execute TableAdapter queries by calling the FillBy() method code that appears in the Click event of the FillByToolStrip control. • The FillBy() method populates the data from a data source in a datatable. This method can also return a new datatable populated with the data returned by a TableAdapter query. • In addtition to FillByToolStrip control, you can also filter the data using the DataView control of a Windows form. • A DataView control creates a customized view of the data stored in a datatable. By default, every table has a data view attached to it. Ver. 1.0 Session 2 Slide 24 of 33
  • 25. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form (Contd.) • You add and bind a DataView control to a Windows form to create a customized view of the data that filter records according to some criterion. • To add a DataView control to a Windows form, you need to perform the following steps: 1. Drag the DataView control from the All Windows Form drop-down list box of the Toolbox pane to the Windows form. If the DataView control is not visible in the toolbox, you can right-click the Toolbox window and select Choose Items option from the drop-down list box. This will open the Choose Toolbox Items dialog box. Check the DataView option from the .NET Framework Components tab in the dialog box. This will make the DataView control visible in the toolbox. Ver. 1.0 Session 2 Slide 25 of 33
  • 26. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form (Contd.) 2. Set the properties for the DataView control in the Properties window. The following table describes the various properties of the DataView control. Property Description Allow Delete, Allow These properties are used to specify whether the Add, and Allow Edit records can be added, deleted, or edited respectively. ApplyDefaultSort This property is used to specify the default sort, if the Sort property is not set. GenerateMember This property specifies if a member variable will be generated for the control. Modifiers This property specifies the visibility level of the DataView object. RowFilter This property is used to specify an expression/condition in a string format used to filter the records. The records that satisfy the condition will only be included in the view. Ver. 1.0 Session 2 Slide 26 of 33
  • 27. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form (Contd.) Property Description RowStateFilter This property specifies the versions of data returned by this DataView. Sort This property is used to specify an expression on the basis of which the records will be sorted. The expression includes the column name and the sort qualifier, which is ASC or DESC, to display the records in the ascending or descending order . Table This property is used to specify the DataTable to which the data view would refer. The property can be set either at design time or run time. Ver. 1.0 Session 2 Slide 27 of 33
  • 28. Developing Database Applications Using ADO.NET and XML Filtering Data Using Controls of a Windows Form (Contd.) The DataView control and its properties are displayed in the following figure. Ver. 1.0 Session 2 Slide 28 of 33
  • 29. Developing Database Applications Using ADO.NET and XML Just a minute Which property of the DataView control specifies an expression/condition in a string format to filter the records? 1. Modifiers 2. RowStateFilter 3. Sort 4. RowFilter Answer: 4. RowFilter Ver. 1.0 Session 2 Slide 29 of 33
  • 30. Developing Database Applications Using ADO.NET and XML Just a minute Which property of the DataView control specifies the versions of data returned by a DataView? 1. Table 2. AllowEdit 3. RowStateFilter 4. GenerateMembers Answer: 3. RowStateFilter Ver. 1.0 Session 2 Slide 30 of 33
  • 31. Developing Database Applications Using ADO.NET and XML Demo: Implementing Filtering of Data Problem Statement: Robert Smith, the HR Manager of Tebisco, needs to view the candidate code, employee code, internal job posting code, position code applied for, date of application, test date, test score, interview date, interviewer, interview comments, rating, status, and test scores of candidates who scored in the top two ranges (between 90-100 and between 80-90). As a developer in the organization, you need to design an application that will display the required details. Hint: You need to refer to the InternalCandidate table of the HR database. Ver. 1.0 Session 2 Slide 31 of 33
  • 32. Developing Database Applications Using ADO.NET and XML Summary In this session, you learned that: Data binding is the ability to bind some elements of a data source with the controls of a Windows Form. Data binding is of two types:  Simple data binding  Complex data binding  Simple data binding is the process of binding a control, such as a textbox or a label, to a value in a dataset.  Complex data binding is the process of binding a component, such as a DataGridView control or a ListBox control, to display the values of multiple columns from a dataset. Ver. 1.0 Session 2 Slide 32 of 33
  • 33. Developing Database Applications Using ADO.NET and XML Summary (Contd.) The data can be filtered to display only the desired records. There are two methods for filtering data:  Creating parameterized queries.  Filtering data using controls of a Windows form.  By using parameterized queries, data can be filtered based on the criterion entered by a user at run time.  FillByToolStrip and DataView controls in a Windows form can be used to filter the data to view selective records. Ver. 1.0 Session 2 Slide 33 of 33

Notas del editor

  1. Introduce the students to the course by asking them what they know about forensics. Next, ask the students what they know about system forensics and why is it required in organizations dependent on IT. This could be a brief discussion of about 5 minutes. Lead the discussion to the objectives of this chapter.
  2. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  3. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  4. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  5. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  6. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  7. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  8. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  9. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  10. In this slide you need to show the calculation to determine the sum of an arithmetic progression for bubble sort algorithm. Refer to student guide.
  11. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  12. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  13. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  14. Introduce the students to the different types of threats that systems face by: Asking the students to give examples of what they think are environmental and human threats. Asking the students to give instances of what they think are malicious and non-malicious threats. Conclude the discussion on the different types of threats by giving additional examples of malicious and non malicious threats.
  15. In this slide you need to show the calculation to determine the sum of an arithmetic progression for bubble sort algorithm. Refer to student guide.
  16. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  17. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  18. In this slide you need to show the calculation to determine the sum of an arithmetic progression for bubble sort algorithm. Refer to student guide.
  19. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  20. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  21. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  22. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  23. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  24. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  25. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  26. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  27. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  28. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.
  29. In this slide you need to show the calculation to determine the sum of an arithmetic progression for bubble sort algorithm. Refer to student guide.
  30. In this slide you need to show the calculation to determine the sum of an arithmetic progression for bubble sort algorithm. Refer to student guide.
  31. While explaining the definition of system forensics, ask the students to note the following key words in the definition: Identify Extract Process Analyze Digital and hardware evidence Tell the students that these form an integral aspect of system forensics and would be discussed in detail. Before moving on to the next slide, hold a brief discussion on why is it important for organizations to take the help of system forensics. The discussion should be focused on: The role that system forensics plays in organizations having an IT set up. This discussion will serve as a precursor to the next slide.