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

What is .Net Framework?

.Net Framework is a software development platform developed by Microsoft for building and
running Windows applications. The .Net framework consists of developer tools, programming
languages, and libraries to build desktop and web applications. It is also used to build websites,
web services, and games.

The .Net framework was meant to create applications, which would run on the Windows
Platform. The first version of the .Net framework was released in the year 2002.

The Microsoft .Net framework can be used to create both – Form-based and Web-based
applications. Web services can also be developed using the .Net framework.

The framework also supports various programming languages such as Visual Basic and C#. So
developers can choose and select the language to develop the required application .

Client Side Validation ?


In the Client Side Validation you can provide a better user experience by responding quickly at
the browser level. When you perform a Client Side Validation, all the user inputs validated in the
user's browser itself. Client Side validation does not require a round trip to the server, so the
network traffic which will help your server perform better. This type of validation is done on the
browser side using script languages such as JavaScript, VBScript or HTML5 attributes.

For example, if the user enter an invalid email format, you can show an error message
immediately before the user move to the next field, so the user can correct every field beforthey
submit the form.
Server Side Validation ?
Server-side input validation will take whatever is sent by the client and conduct additional
checks. Using server-side validation indicates that any input sent by the user (or client) cannot
be trusted.

What is a .ASP file?

An ASP file is the same as an HTML file except that rather than the file having an extension
of .htm or .html, it has an extension of .asp. When a user agent (browser) requests an ASP file,
the web server (IIS) passes the request to the ASP engine. The ASP engine reads the ASP file, line
by line, and executes the scripts in the file.

The ASP file is returned to the browser as plain HTML. The ASP code is executed on the server,
not the client. A typical ASP file looks like a common HTML file with JavaScript and/or VBScript
embedded within a special block or blocks of code within the <body> element.

Or
 An ASP file has the file extension ".asp"
 An ASP file is just the same as an HTML file
 An ASP file can contain server scripts in addition to HTML
 Server scripts in an ASP file are executed on the server
Why use ASP?

ASP allows you to easily deliver dynamic web content back to the end-user. You can implement
web forms to capture user input, and respond back with results that are returned from a data
source such as a database. ASP is easy to learn and use and is more powerful than using CGI or
Perl. While ASP was popular ten years ago, it may not be the best choice for new web
applications.

How Does Asp Work?


When a browser requests a normal HTML file, the server just returns the file.

When a browser requests an ASP file, the server passes the request to the
ASP engine which reads the ASP file and executes the server scripts in the
file.

Finally the ASP file is returned to the browser as plain HTML.

Common Language Runtime (CLR)?


The Common Language Runtime (CLR) is programming that manages the execution of programs
written in any of several supported languages, allowing them to share common object-
oriented classes written in any of the languages. It is a part of Microsoft's .NET Framework. The
CLR is somewhat comparable to the Java virtual machine that Sun Microsystems provides for
running programs compiled from the Java language. Microsoft refers to its CLR as a "managed
execution environment." A program compiled for the CLR does not need a language-specific
execution environment and can easily be moved to and run on any system with Windows
2000 or Windows XP

Step to download IIS?


1.Open the Start menu.

2.Type "features" and select Turn Windows features on or off


3.Tick the Internet Information Services checkbox and select OK.

4.Wait for the installation to complete and select Close.

What is IIS?
Internet Information Services, also known as IIS, is a Microsoft web server that runs on Windows
operating system and is used to exchange static and dynamic web content with internet users.
IIS can be used to host, deploy, and manage web applications using technologies such as
ASP.NET and PHP.

What is ASP.NET ?
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, applications and services. The name stands for Active
Server Pages Network Enabled Technologie

or
ASP.NET is a free web framework for building great websites and web applications using HTML,
CSS, and JavaScript. You can also create Web APIs and use real-time technologies like Web
Sockets.

DataList-:
ASP.NET DataList control is like a repeater control which is used to display items in the repeated
list that bounds to control. It is a lightweight control that displays continual information and it's a
Databound control that manages the data in web application. DataList control is managed by its
template fields.
Range validator-:
The RangeValidator control is used to check the input control value is within a specified range or
not. In other words we can say the input values must be between two defined values.  It has
minimum and maximum value.

RangeValidator control mostly used for a validate Mobile No and Pincode. Mobile no and


Pincode no length must be pre defined. In India, Mobile no length must be 10 digits and Pincode
must be 6 digits.

Menu-:
The Menu control is used to display a menu in an ASP.NET Web page and is often used in
combination with a SiteMapDataSource control for navigating a Web site. The Menu control
supports the following features:

When the user clicks a menu item, the Menu control can either navigate to a linked Web page or
simply post back to the server. If the NavigateUrl property of a menu item is set,
the Menu control navigates to the linked page; otherwise, it posts the page back to the server
for processing .it also called navbar(navigation menu).

Image Map-:
Creates a control that displays an image on a page. When a hot spot region defined within
the ImageMap control is clicked, the control either generates a postback to the server or
navigates to a specified URL.

What is ASP.NET GridView?


GridView is a control used to display data in tables on a web page. It displays data in both rows
and columns, where each column represents a field, and each row represents a record.

GridView helps to perform key activities like Insert, Delete, Sorting, and Paging.

GridView Control Syntax:

<asp:GridView ID=”GridControl” runat=”server”></asp:GridView>


What is ASP.NET DetailView?
The DetailsView Control enable us to work with a single data item at a time. This control enable
us to display, edit, insert, and delete data items such as database records. Furthermore, it also
enable us to page forward and backward through a set of data items.

What is the definition of a cookie and its type?


A cookie is a piece of data from a website that is stored within a web browser that the website
can retrieve at a later time. Cookies are used to tell the server that users have returned to a
particular website.

There are two types of cookies: The first type is the session cookie, which is temporary and only
lasts for the duration of the user's visit to the website. The second type is the persistent cookie,
which is stored on the user's computer for a longer period of time.

How to: Define ASP.NET Page Themes?


In Visual Web Developer you can define page themes which you can then apply to one or more
pages in your application. You can also create themes at the machine level that can be used in
multiple applications on the server.

Themes consist of several supporting files, including style sheets for page appearance, control
skins to define the appearance of server controls, and any other supporting images or files that
make up the theme. The content of a theme is the same whether the theme is defined as a page
theme or as a global theme.

How To create a page theme?


1.right-click the name of the Web site for which you want to create a page theme, and then click
Add ASP.NET Folder.

2.Click Theme.

3. Type a name for the new folder.

4. Add files to your new folder for control skins, style sheets, and images that make up the
theme.
ASP.NET life Cycle ?
1. ASP.NET processes pages to produce dynamic output

2. The application and its pages are instantiated and processed

3. ASP.NET compiles the pages dynamically


The ASP.NET life cycle could be divided into two groups:

 Application Life Cycle


 Page Life Cycle

ASP.NET Application Life Cycle:


 User makes a request for accessing application resource, a page. Browser sends this request to the web
server.
 A unified pipeline receives the first request and the following events take place:
o An object of the class ApplicationManager is created.
o An object of the class HostingEnvironment is created to provide information regarding the resources.
o Top level items in the application are compiled.
 Response objects are created. The application objects such as HttpContext, HttpRequest and
HttpResponse are created and initialized.
 An instance of the HttpApplication object is created and assigned to the request.
 The request is processed by the HttpApplication class. Different events are raised by this class for
processing the request.

ASP.NET Page Life Cycle:


When a page is requested, it is loaded into the server memory, processed, and sent to the browser. Then it is
unloaded from the memory. At each of these steps, methods and events are available, which could be overridden
according to the need of the application. In other words, you can write your own code to override the default code.
The Page class creates a hierarchical tree of all the controls on the page. All the components on the page, except
the directives, are part of this control tree. You can see the control tree by adding trace= "true" to the page
directive. We will cover page directives and tracing under 'directives' and 'event handling'.
The page life cycle phases are:

 Initialization
 Instantiation of the controls on the page
 Restoration and maintenance of the state
 Execution of the event handler codes
 Page rendering

Following are the different stages of an ASP.NET page:

Page request - When ASP.NET gets a page request

starting of page life cycle - At this stage, the Request and Response objects are set.

You might also like