Unit Four
Unit Four
UNIT - II :
Introduction To Asp .Net Inroduction To Asp .Net, Types,Object And
Namespaces, Setting Up Asp .Net And Iis,Asp .Net Configuration, Asp .Net
Application,Web Form Fundamentals, Web Controls,Global.Asax Application
File,Responding To Postback Events In Asp .Net.
UNIT - III :
Asp .Net Validations And Rich Controls:Calendar
Control,Adrotator,Advertisement File And Adrotator Class, Server-Side
Validation,Client –Side Validation,Validation Controls,Validated Customer
Form.Stat Management, Tracing,Logging And Error Handling.
UNIT - IV :
Accessing Data With Ado.Net Relational Databases And Sql,Ado .Net Object
Model, Working With Data –Bound Controls, Populating A Datagrid, Datalist
And Repeater, Customizing Dataset And Combining Data Tables,Changing
Database Records Accessing,Updating,Deleting And Creating Records,
Difference Between Ado .Net And Xml,Adding Controls, Data Binding,
Database Connectivity.
Join Our Telegram Community - Aspire2Learn
UNIT FOUR –
1. Describe The Working Of ADO.NET.
S[2024,2019,2018],W[2023].
Ans –
What is ADO.NET –
Example:
Components of ADO.NET –
Component Description
Example -
Scenario: Online Shopping Website (E-Commerce App)
Imagine an online shopping website like Amazon where
users can:
View product details (Retrieve Data)
3. Key Features:
Database Connection:
SqlConnection establishes a connection to the database.
Steps to Implement:
1. Create a Database Table (SQL Server)
3. Code-Behind (Default.aspx.cs)
Explanation of Code –
1 Laptop 50000
2 Mouse 700
3 Keyboard 1200
------------------------------------------------------------------------------
7. Explain Structure Of Connection String For Database
Connectivity. S[2023,2018].
Ans –
1. A Connection String is a string used to establish a
connection between an ASP.NET application and a
database.
4. PostgreSQL Connection -
5. Oracle Connection –
Explanation -
Connects to SQL Server Database using SqlConnection.
Expected Output –
Join Our Telegram Community - Aspire2Learn
ID Name Department
1 John IT
2 Sarah HR
------------------------------------------------------------------------------
9. Explain Data Grid, Data List And Repeater. S[2024].
OR
10. Explain Data List And Repeater In Detail. W[2023,2017].
Ans –
1. DataGrid Control –
Overview -
Expected Output –
1 John IT 50000
2 Sarah HR 45000
2. DataList Control
Overview
Displays data in a flexible layout (Grid, List, Horizontal,
Vertical, etc.).
3. Repeater Control
Overview
Expected Output –
3. Key Features:
o Displays data in a tabular format
Join Our Telegram Community - Aspire2Learn
o Supports sorting, paging, and editing
Property Description
Steps to Implement:
Database Connection:
Establishes a connection using SqlConnection.
------------------------------------------------------------------------------
Q.5 – Short Answer Questions
------------------------------------------------------------------------------
1. Explain Data Binding. S[2024,2023].
Ans –
1. Data Binding in ASP.NET is the process of connecting UI
controls (such as GridView, DropDownList, and
ListView) to a data source (like a database, XML file, or
collection) to dynamically display data.
Join Our Telegram Community - Aspire2Learn
Types of Data Binding -
Simple Data Binding – Binds a single value to controls
like Label, TextBox, and DropDownList.
------------------------------------------------------------------------------
2. Explain Its Services Used In Asp.Net Application.
W[2023,2022,2018].
Ans –
Services Used in ASP.NET Application -
ASP.NET provides various built-in services to enhance
web applications' performance, security, and
functionality.
1. Caching Service
Purpose: Improves performance by storing frequently
accessed data in memory.
Example:
Example:
Forms Authentication (Login system).
Types:
Join Our Telegram Community - Aspire2Learn
Session State: Stores user data per session.
Example:
Using try-catch for exception handling.
Example:
Example:
Join Our Telegram Community - Aspire2Learn
RESTful APIs for data exchange.
Example:
3. Real-World Example:
SOAP in ASP.NET -
In ASP.NET, SOAP is used in Web Services (.asmx) to
allow communication between different applications.
ASP.NET provides built-in support for SOAP-based web
services.
How it Works?
Client sends a SOAP request to the server.
Server processes the request and sends a SOAP
response.
Data is exchanged in XML format, ensuring platform
independence.
Expected Output:
Client sends 5 + 10, Server returns 15 as response in
SOAP format.
------------------------------------------------------------------------------
5. Write Short Note On ‘Data List Control’. W[2022,2019].
Ans –
Data List Control –
2. Key Features -
o Supports multiple layouts (grid, vertical, horizontal).
Explanation
DataList → Binds data from SqlDataSource1 and displays
it.
------------------------------------------------------------------------------
7. Write Web Forms Fundamentals And Properties.
S[2019,2017].
Join Our Telegram Community - Aspire2Learn
Ans –
1. ASP.NET Web Forms is a part of the ASP.NET framework
used to build dynamic web applications. It follows an
event-driven programming model and allows developers
to create web pages with rich UI components.
------------------------------------------------------------------------------
8. Explain Calendar Control In Short. S[2019,2017].
Ans -
1. The Calendar Control in ASP.NET is a built-in web control
used to display a calendar and allow users to select dates.
Join Our Telegram Community - Aspire2Learn
It is highly customizable and can be used for scheduling,
booking systems, date selection, and event-driven
applications.
2. Key Features:
3. Real-World Example:
------------------------------------------------------------------------------
Aspire2Learn Feedback Form –
- Your Voice, Our Priority