Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

ASP.

NET: is an open source server-side Web application framework designed for Web
development to produce dynamic Web pages. It was developed by Microsoft to allow
programmers to build dynamic web sites, web applications and web services. It was first
released in January 2002. Benefits: Separate presentation from code , Object-oriented
approach ,Component-based development
Client-Server Architecture Client-server architecture is a network architecture in which each
computer or process on the network is either a client or a server. Servers are powerful
computers dedicated to managing disk drives, printers, or network traffic
Advantages: All data stored at server, Easy to Implement Security.
Disadvantages: Clients are dependent on servers , All load transfer on Servers.
Page Class Every web page is a custom class that inherits from System. Web.UI.Page. By
inheriting from this class, your web page class acquires a number of properties that your
code can use.
Control Class The Page Controls collection includes all the controls on the current web form.
You can loop through this collection and access each control.
Http Request Class: The Http Request class encapsulates all the information related to a
client request for a web page.
Button control: Button control is used to submit the data to the server. Button control
works like a Push Button when you click the data is submitted to the server.
Text Box Control: The Text Box control can be used to display three different types of input
fields depending on the value of its Text Mode property.
Check Box: Check Box control is used to accept the choice from user. It is used to display
multiple choices from which user can select none of them or many or all of them.
Label: Whenever you need to modify the text displayed in a page dynamically, you can use
the Label control. Any string that you assign to the Label control's Text property is displayed
by the Label when the control is rendered.
File Upload: The File Upload control allows the user to browse for and select the file to be
uploaded, providing a Browse button and a text box for entering the filename.
Validation: Validation server control is used to validate the data of an input control. Validation
controls validate the user input data to ensure that useless, unauthenticated or contradictory data
will not get stored. Types of Validation: Client side validation , Server side validation

Client side validation Server side validation


No need of interaction b/w the server It all about interacting with the server
It does not provide security for data It provide more security fo data
It runs on the user’s computer It runs on web server
Source code is visible to the user’s Source code is not visible to the user its
output of server side is an html
Panel control :The Panel control enables you to work with a group of ASP.NET controls. You
can use a Panel control to hide or show a group of ASP.NET controls.
Master Page: Then, the ASP.NET team developed the idea of master pages: a unique
way to apply templates to web applications. User controls are embedded within the
page and are doomed to duplication. But master pages live outside the aspx page.

Session: In ASP.NET session is a state that is used to store and retrieve values of a
user. It helps to identify requests from the same browser during a time period
(session). It is used to store value for the particular time session.

Cookies: A cookies is a small bit of txt that accompanies request and pages as they go
between the web server and browser, the cookies contains information the web application
can read whenever the user visit the site

IIS: Internet Information Server (IIS) is one of the most popular web servers from Microsoft
that is used to host and provide Internet-based services to ASP.NET and ASP Web
applications.

CLR: common language runtime .NET CLR is a runtime environment that manages and
executes the code written in any .NET programming language. CLR is the virtual
machine component of the .NET framework.
HTTP ( Hyper Text Transfer Protocol) is a stateless protocol. When the client disconnects
from the server, the ASP.Net engine discards the page objects.
Types of Files in ASP.NET: .aspx , .ascx , .asmx , Web.config , Global.asax ,
.cs /.vb
.aspx : These are ASP.NET web pages (the .NET equivalent of the .asp file in an ASP
application).
.ascx : These are ASP.NET user controls. User controls are similar to web pages, except that
they can’t be accessed directly.
.asmx : These are ASP.NET web services. Web services work differently than web pages, but
they still share the same application resources,
Query strings: Query strings are usually used to send information from one page to another
page. They are passed along with URL in clear text. Now that cross page posting feature is
back in asp.net 2.0, Query strings seem to be redundant. Most browsers impose a limit of
255 characters on URL length. We can only pass smaller amounts of data using query
strings.
Advantages: Simple to Implement
Disadvantages: Human Readable
Application State: Application object is used to store data which is visible across entire
application and shared across multiple user sessions .Data which needs to be persisted for
entire life of application should be stored in application object.
ADO.NET: ADO.NET (ActiveX Data Object for .NET) is an object-oriented set of libraries that
allows you to interact with data sources. Commonly, the data source is a database, but it
could also be a text file an Excel spreadsheet, or an XML file. It is a part of the base class
library that is included with the Microsoft .NET Framework.
Data Reader: Data Reader object allows forward-only, read-only access to a database. Using
Data Reader is the connected way of accessing data and an open connection must be
available first.
Data Adapter: Data Adapter can be considered as a bridge between the actual data source
to your application. It is commonly used together with a Data Set. Using Data Adapter and
Data Set is the disconnected way of retrieving data from the data source.
Connected architecture: In connected architecture, you made a connection to the database
system and then interacted with it through SQL queries using connection. The application
stays connected to the DB system even when it is not using DB services.
Disconnected architecture: ADO.NET solves connected architecture problem by managing a
local buffer of persistent data called dataset. Application automatically connects to the
database server when it needs to run a query and then disconnects immediately after
getting the result back.
Data Reader: Data Reader object allows forward-only, read-only access to a database. Using
Data Reader is the connected way of accessing data and an open connection must be
available first.
Data View: provides different views of the data stored in a Data Table. That is we can
customize the views of data from a Data Table. Data Grid View
Data Grid View: control is designed to be a complete solution for displaying tabular data
with Windows Forms.

You might also like