Unit - 1: ASP.NET Basic
~~~~~~~~~~~~~~~~~~~~
Introduction to ASP.NET: .NET Framework (CLR, CLI, BCL), ASP.NET Basics, ASP.NET Page Structure, Page Life Cycle.
Controls: HTML Server Controls, Web Server Controls, Web User Controls, Validation Controls, Custom Web Controls.
The .NET Framework is a development platform that provides a managed computing environment and common language runtime. It includes common .NET languages like C# and VB compiled to intermediate language. The common language runtime translates this to native code and provides services like memory management. The class library includes prebuilt functionality. ASP.NET is built on .NET and hosts web applications, supporting authentication and data storage. Visual Studio is an IDE that facilitates application development in this platform.
ASP.NET is a set of Web development tools offered by Microsoft. Programs like Visual Studio .NET and Visual Web Developer allow Web developers to create dynamic websites using a visual interface. Of course, programmers can write their own code and scripts and incorporate it into ASP.NET websites as well. Though it often seen as a successor to Microsoft's ASPprogramming technology, ASP.NET also supports Visual Basic.NET, JScript .NET and open-source languages like Python and Perl.
ASP.NET is built on the .NET framework, which provides an application program interface (API) for software programmers. The .NET development tools can be used to create applications for both the Windows operating system and the Web. Programs like Visual Studio .NET provide a visual interface for developers to create their applications, which makes .NET a reasonable choice for designing Web-based interfaces as well.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. It includes class libraries for common functions.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. Developers can choose the language to develop applications.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. It includes class libraries for common functions.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications for the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. Developers can select the language to develop applications.
Getting started with dotnet core Web APIsKnoldus Inc.
油
Web API is a framework for building HTTP services that can be accessed from any client including browsers and mobile devices. It is an ideal platform for building RESTful applications on the .NET Framework12. You can learn how to build secure and scalable REST APIs with ASP.NET Core, the same framework and patterns you use to build web pages and services
What is C# used for? Like other general-purpose programming languages, C# can be used to create a number of different programs and applications: mobile apps, desktop apps, cloud-based services, websites, enterprise software and games. Lots and lots of games.
C# (pronounced see sharp)[b] is a general-purpose, high-level multi-paradigm programming language. C# encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.[16]
The C# programming language was designed by Anders Hejlsberg from Microsoft in 2000 and was later approved as an international standard by Ecma (ECMA-334) in 2002 and ISO/IEC (ISO/IEC 23270) in 2003. Microsoft introduced C# along with .NET Framework and Visual Studio, both of which were closed-source. At the time, Microsoft had no open-source products. Four years later, in 2004, a free and open-source project called Mono began, providing a cross-platform compiler and runtime environment for the C# programming language. A decade later, Microsoft released Visual Studio Code (code editor), Roslyn (compiler), and the unified .NET platform (software framework), all of which support C# and are free, open-source, and cross-platform. Mono also joined Microsoft but was not merged into .NET.
The document introduces Microsoft .NET framework and its key components:
- .NET is an initiative to integrate Microsoft products and enable information access across devices.
- The .NET framework includes common language runtime, class libraries, and ASP.NET. It allows applications to be built for multiple languages and platforms.
- Visual Studio.NET is an IDE for developing .NET applications using languages like C# and Visual Basic.NET. It provides features to easily create, deploy and manage web and desktop applications.
ASP.NET is a server-side technology for developing dynamic web applications using the .NET Framework. It allows developers to use familiar programming languages like C# and VB to build web applications. ASP.NET pages are compiled for improved performance over traditional ASP pages. ASP.NET provides access to useful .NET Framework functionality and allows separation of server-side code from HTML layout. The document provides instructions on installing Visual Web Developer, the .NET Framework, a web browser, and SQL Server for ASP.NET development.
The ultimate cheat sheet on .net core, .net framework, and .net standardConcetto Labs
油
Here you will learn the difference between .Net core, .Net framework, & .Net standard and will guide you to choose the best as per your business requirements.
ASP.NET is a web development platform that provides the programming model, infrastructure, and services needed to build robust web applications for desktops and mobile devices. It uses HTTP to enable two-way communication between the browser and server. ASP.NET applications are compiled code written using reusable components in the .NET framework and can be written in languages like C#, VB.NET, JavaScript, and J#. ASP.NET is used to create interactive, data-driven web applications accessed over the internet using various server controls.
The document provides an introduction to the .NET framework. It discusses that .NET is a software platform and runtime that supports multiple programming languages and allows development of web and Windows applications. It describes key aspects of .NET including the Common Language Runtime (CLR), Windows Forms, ASP.NET, ADO.NET, and Visual Studio.NET development tools. It also provides comparisons between .NET and Java platforms and architectures.
This document provides an introduction to ASP.NET, including:
1. It explains some of the limitations of traditional ASP like interpreted code, mixing of HTML and logic, and lack of state management.
2. It then introduces ASP.NET as Microsoft's solution to these problems, providing advantages like separation of code and HTML, support for compiled languages, and improved state management.
3. It provides an overview of the ASP.NET architecture and programming model, explaining concepts like web forms, server controls, and the page execution cycle.
Top 10 - ASP.NET Interview Questions And Answers 2023.pdfRuddarpratap
油
This document provides an introduction and overview of the top 10 ASP.NET interview questions and their answers. It discusses what ASP.NET is, its key features like being an open-source web application framework part of the .NET platform. It also summarizes some important ASP.NET concepts like the Common Language Runtime, MVC framework, Server Controls, the web.config and Global.asax files.
This document provides an overview of ASP.NET applications, including what constitutes an ASP.NET application, the different file types used, and how ASP.NET applications work behind the scenes. Key points include:
- An ASP.NET application is defined as a combination of files, pages, handlers, modules and code that can be accessed from a virtual directory on a web server.
- Common file types include .aspx pages, .ascx user controls, .asmx web services, and a web.config configuration file.
- When a request is made for an ASP.NET file, IIS passes it to the ASP.NET worker process, which compiles and caches the page for optimal performance,
The document provides an overview of Microsoft ASP.NET, describing what it is, its advantages, and how it works. Key points include: ASP.NET provides a programming model and infrastructure for developing web applications using .NET languages and services; it offers advantages like compiled pages, XML configuration, and server controls; applications can be built as web forms or web services; and the .NET Framework provides a large class library for ASP.NET applications to utilize.
.Net is a framework that helps developers create web applications and web services that use forms and web technology. It is used to develop desktops and server-based applications.
Active server pages .net role discusses shifting from classic ASP to ASP.NET, which provides a framework with namespaces and can be developed using an IDE. ASP.NET uses web forms and pages, separating HTML from application logic. It discusses state management techniques like cookies and hidden fields to maintain state across HTTP requests. The key objectives of ASP.NET are to create web forms with server controls, separate code and content, display dynamic data through binding, and debug ASP.NET pages.
I. ASP.NET is a web development platform from Microsoft used to build web applications. It provides advantages over classic ASP like separation of presentation and code for easier maintenance.
II. The ASP.NET architecture includes layers for the browser, web server, application server, business logic, and database. It uses HTTP for communication and HTML/XHTML pages.
III. Key challenges in designing web application interfaces include the stateless nature of the web, ensuring responsive and intuitive user interfaces, achieving scalability and performance, and addressing security issues.
SERVER-SIDE SCRIPTING IS A WEB SERVER TECHNOLOGY IN WHICH A USER'S REQUEST IS FULFILLED BY RUNNING A SCRIPT DIRECTLY ON THE WEB SERVER TO GENERATE DYNAMIC HTML PAGES.
It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript. The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.
The document describes an online furniture management system website called Liyawel.com that was created for a master's project. The website was developed in a cost-effective way using an open-source ecommerce solution and includes a front-end public site and a back-end admin site. The website allows users to register, view products by category, add items to a cart, and make payments online with credit/debit cards. It also sends email confirmations.
ASP is an active server page technology developed by Microsoft that allows web developers to build dynamic websites and web applications. ASP files can contain HTML tags, text, and scripting code. Scripts in ASP files are executed on the server rather than in the user's web browser. Common uses of ASP include dynamically generating and customizing web page content, accessing databases to display information to users, and providing more security since ASP code is not visible to users.
Have you know about Microsofts new version of ASP.NET Core?
That is ASP.Net Core 3.0, is an open-source, modular, community-focused framework to build superior quality applications.
Read the full blog and know what are the new features and fundamental changes to existing features.
Visit graycelltech.com/blog for more
The document discusses the .NET platform and framework. It provides an overview of the key components of .NET including the Common Language Runtime (CLR) environment that executes programs, the Framework Class Library (FCL) base classes and libraries, and support for multiple programming languages. It also describes concepts like application domains, marshaling objects across boundaries, and how programs are compiled to Microsoft Intermediate Language (MSIL) and executed.
Murach: An introduction to web programming with ASP.NET Core MVCMahmoudOHassouna
油
Murach: An introduction to web programming with ASP.NET Core MVC
Mary Delamater, Joel Murach - Murach's ASP.NET Core MVC-Mike Murach & Associates, Inc. (2020) (1)
.NET is a software framework developed by Microsoft that includes a runtime environment, class libraries and tools to develop various types of applications. The .NET Framework provides a common language runtime (CLR) that compiles code into an intermediate language and provides services like memory management and security. It also includes a base class library for developing Windows forms, web forms, web services and more using languages like C# and Visual Basic. .NET aims to provide a unified platform for developing desktop, web and mobile applications using common languages and libraries.
What is C# used for? Like other general-purpose programming languages, C# can be used to create a number of different programs and applications: mobile apps, desktop apps, cloud-based services, websites, enterprise software and games. Lots and lots of games.
C# (pronounced see sharp)[b] is a general-purpose, high-level multi-paradigm programming language. C# encompasses static typing, strong typing, lexically scoped, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.[16]
The C# programming language was designed by Anders Hejlsberg from Microsoft in 2000 and was later approved as an international standard by Ecma (ECMA-334) in 2002 and ISO/IEC (ISO/IEC 23270) in 2003. Microsoft introduced C# along with .NET Framework and Visual Studio, both of which were closed-source. At the time, Microsoft had no open-source products. Four years later, in 2004, a free and open-source project called Mono began, providing a cross-platform compiler and runtime environment for the C# programming language. A decade later, Microsoft released Visual Studio Code (code editor), Roslyn (compiler), and the unified .NET platform (software framework), all of which support C# and are free, open-source, and cross-platform. Mono also joined Microsoft but was not merged into .NET.
The document introduces Microsoft .NET framework and its key components:
- .NET is an initiative to integrate Microsoft products and enable information access across devices.
- The .NET framework includes common language runtime, class libraries, and ASP.NET. It allows applications to be built for multiple languages and platforms.
- Visual Studio.NET is an IDE for developing .NET applications using languages like C# and Visual Basic.NET. It provides features to easily create, deploy and manage web and desktop applications.
ASP.NET is a server-side technology for developing dynamic web applications using the .NET Framework. It allows developers to use familiar programming languages like C# and VB to build web applications. ASP.NET pages are compiled for improved performance over traditional ASP pages. ASP.NET provides access to useful .NET Framework functionality and allows separation of server-side code from HTML layout. The document provides instructions on installing Visual Web Developer, the .NET Framework, a web browser, and SQL Server for ASP.NET development.
The ultimate cheat sheet on .net core, .net framework, and .net standardConcetto Labs
油
Here you will learn the difference between .Net core, .Net framework, & .Net standard and will guide you to choose the best as per your business requirements.
ASP.NET is a web development platform that provides the programming model, infrastructure, and services needed to build robust web applications for desktops and mobile devices. It uses HTTP to enable two-way communication between the browser and server. ASP.NET applications are compiled code written using reusable components in the .NET framework and can be written in languages like C#, VB.NET, JavaScript, and J#. ASP.NET is used to create interactive, data-driven web applications accessed over the internet using various server controls.
The document provides an introduction to the .NET framework. It discusses that .NET is a software platform and runtime that supports multiple programming languages and allows development of web and Windows applications. It describes key aspects of .NET including the Common Language Runtime (CLR), Windows Forms, ASP.NET, ADO.NET, and Visual Studio.NET development tools. It also provides comparisons between .NET and Java platforms and architectures.
This document provides an introduction to ASP.NET, including:
1. It explains some of the limitations of traditional ASP like interpreted code, mixing of HTML and logic, and lack of state management.
2. It then introduces ASP.NET as Microsoft's solution to these problems, providing advantages like separation of code and HTML, support for compiled languages, and improved state management.
3. It provides an overview of the ASP.NET architecture and programming model, explaining concepts like web forms, server controls, and the page execution cycle.
Top 10 - ASP.NET Interview Questions And Answers 2023.pdfRuddarpratap
油
This document provides an introduction and overview of the top 10 ASP.NET interview questions and their answers. It discusses what ASP.NET is, its key features like being an open-source web application framework part of the .NET platform. It also summarizes some important ASP.NET concepts like the Common Language Runtime, MVC framework, Server Controls, the web.config and Global.asax files.
This document provides an overview of ASP.NET applications, including what constitutes an ASP.NET application, the different file types used, and how ASP.NET applications work behind the scenes. Key points include:
- An ASP.NET application is defined as a combination of files, pages, handlers, modules and code that can be accessed from a virtual directory on a web server.
- Common file types include .aspx pages, .ascx user controls, .asmx web services, and a web.config configuration file.
- When a request is made for an ASP.NET file, IIS passes it to the ASP.NET worker process, which compiles and caches the page for optimal performance,
The document provides an overview of Microsoft ASP.NET, describing what it is, its advantages, and how it works. Key points include: ASP.NET provides a programming model and infrastructure for developing web applications using .NET languages and services; it offers advantages like compiled pages, XML configuration, and server controls; applications can be built as web forms or web services; and the .NET Framework provides a large class library for ASP.NET applications to utilize.
.Net is a framework that helps developers create web applications and web services that use forms and web technology. It is used to develop desktops and server-based applications.
Active server pages .net role discusses shifting from classic ASP to ASP.NET, which provides a framework with namespaces and can be developed using an IDE. ASP.NET uses web forms and pages, separating HTML from application logic. It discusses state management techniques like cookies and hidden fields to maintain state across HTTP requests. The key objectives of ASP.NET are to create web forms with server controls, separate code and content, display dynamic data through binding, and debug ASP.NET pages.
I. ASP.NET is a web development platform from Microsoft used to build web applications. It provides advantages over classic ASP like separation of presentation and code for easier maintenance.
II. The ASP.NET architecture includes layers for the browser, web server, application server, business logic, and database. It uses HTTP for communication and HTML/XHTML pages.
III. Key challenges in designing web application interfaces include the stateless nature of the web, ensuring responsive and intuitive user interfaces, achieving scalability and performance, and addressing security issues.
SERVER-SIDE SCRIPTING IS A WEB SERVER TECHNOLOGY IN WHICH A USER'S REQUEST IS FULFILLED BY RUNNING A SCRIPT DIRECTLY ON THE WEB SERVER TO GENERATE DYNAMIC HTML PAGES.
It is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the viewing web browser, usually in JavaScript. The primary advantage to server-side scripting is the ability to highly customize the response based on the user's requirements, access rights, or queries into data stores.
The document describes an online furniture management system website called Liyawel.com that was created for a master's project. The website was developed in a cost-effective way using an open-source ecommerce solution and includes a front-end public site and a back-end admin site. The website allows users to register, view products by category, add items to a cart, and make payments online with credit/debit cards. It also sends email confirmations.
ASP is an active server page technology developed by Microsoft that allows web developers to build dynamic websites and web applications. ASP files can contain HTML tags, text, and scripting code. Scripts in ASP files are executed on the server rather than in the user's web browser. Common uses of ASP include dynamically generating and customizing web page content, accessing databases to display information to users, and providing more security since ASP code is not visible to users.
Have you know about Microsofts new version of ASP.NET Core?
That is ASP.Net Core 3.0, is an open-source, modular, community-focused framework to build superior quality applications.
Read the full blog and know what are the new features and fundamental changes to existing features.
Visit graycelltech.com/blog for more
The document discusses the .NET platform and framework. It provides an overview of the key components of .NET including the Common Language Runtime (CLR) environment that executes programs, the Framework Class Library (FCL) base classes and libraries, and support for multiple programming languages. It also describes concepts like application domains, marshaling objects across boundaries, and how programs are compiled to Microsoft Intermediate Language (MSIL) and executed.
Murach: An introduction to web programming with ASP.NET Core MVCMahmoudOHassouna
油
Murach: An introduction to web programming with ASP.NET Core MVC
Mary Delamater, Joel Murach - Murach's ASP.NET Core MVC-Mike Murach & Associates, Inc. (2020) (1)
.NET is a software framework developed by Microsoft that includes a runtime environment, class libraries and tools to develop various types of applications. The .NET Framework provides a common language runtime (CLR) that compiles code into an intermediate language and provides services like memory management and security. It also includes a base class library for developing Windows forms, web forms, web services and more using languages like C# and Visual Basic. .NET aims to provide a unified platform for developing desktop, web and mobile applications using common languages and libraries.
Presentation from the CanUX and IxDA Ottawa meetup talking about the practice of Authentic Conversations which is rooted in the work of Marshall Rosenberg's Authentic Conversation.
Experienced Architectural Engineer & Project manager offering 23+ years of a successful career with diverse roles distinguished by commended performance in leading a team of architects and project engineers with focus on transforming client ideas into beautiful and functional design solutions
Expert in developing project baselines; monitoring and controlling projects with respect to cost, time over-runs and quality compliance to ensure satisfactory execution of projects
Excellence in creating comprehensive architectural designs & built environment, plans, layouts, working drawings, construction details to ensure execution of projects within time and budgeted parameters
Credit of success in leading projects ranging from Hi-tech town planning, educational institute,Industrial projects high rise apartments, mixed use development, commercials, retail (mall and multiplexes), hill Housing, plotted development, Luxury villa design, hotel design and industrial to hi-end interiors of mall .
Tired of trying to match your blog, landing page, or affiliate store to your existing brand or site? This smart tool lets you instantly create a custom WordPress theme that mirrors your existing designfonts, colors, layout and allwithout coding or hiring a designer. Whether you're a solopreneur, blogger, or affiliate marketer, this tool saves time, maintains brand consistency, and keeps your digital presence looking sharp across every platform. With just a few clicks, you can paste in your current website URL and generate a professional-looking theme that's ready to use. Great for rebranding, A/B testing, or launching new campaigns quickly.
Mixing Vintage and Modern Styles in Your Home DesignToposDesignsg
油
Mixing vintage and modern styles can give your home a unique and timeless look. At TOPOS Design Studio, we help you blend the charm of old furniture and classic details with the clean lines of modern design. Whether its a vintage armchair in a sleek living room or modern lighting with antique d辿cor, we make every corner feel balanced and stylish. Our team understands how to bring warmth and personality into your space through smart residential interior design.
More Details: https://toposdesign.com/interior-design-services/
Download Adobe After Effects Crack Latest Version [Updated]muhaamadalhan
油
https://up-community.net/after-verification-click-go-to-download-page/
Adobe After Effects is a powerful motion graphics and visual effects software used to create stunning animations.
Villa de'Urgell -.pdf New single-family residence being developed in a twenty...Manny Vesa
油
New single-family residence for a family of five. Designed in French Provincial architecture to meet client's requirements. Authentic use of materials such as slate roof, split-face and smooth limestone cladding, and Italian earthenware porcelain ceramic tile throughout the interiors. Interior/interior swimming pool with Italian Cypress and Bougenvillia landscaping.
Velocity - On-demand feedback for Figma prototypesVelocity
油
On-demand usability feedback is putting a stop to wasted human time by encouraging designers to first review with AI simulations. We are a team of ex-agency owners whose teams had a hand in building big mobile Apps for companies like Meetup, Soundcloud, Mubi, Glovo. We, like many design, engineering and Product teams, were often in a position where evidence was weak and feedback was impossible to access, but we were still under pressure to deliver! Limited time, budgets and firewalls meant waiting weeks to iterate. Now, in seconds, on-demand, you can challenge an AI on your app's designs just like in user testing sessions. Ask questions, then witness a simulation trying to 'use' connected images of your current or future app.
We are first launching as a Figma plugin to provide designers with 24/7 on-demand UX feedback. We offer the earliest validation BEFORE code and BEFORE asking real humans.
Features:
- Challenge AI simulations on Figma interactive prototypes before users and stakeholders
- Review UX/UI accessibility
- Then source human feedback <1min
- In-app responses & heat/click maps
Try Our Figma Url: https://www.figma.com/community/plugin/1397952939678206595/ai-design-reviews-user-simulations-then-human-feedback-1min
2. ASP
ASPACTIVE SERVER PAGES
Server side scripting Environment used to create and run
dynamic ,interactive, high-performance web server applications.
Script Server side
Browser RequestWeb serverResponsebrowser
3. .NET
.NET is a free, cross-platform ,open source developer platform for
building many different types of application.
With .NET, you can use multiple langauage ,editors, and libraries to
build for web ,mobile ,desktop ,gaming and iot.
Programming languges C#,VB,F#
.NET Application create IDEVisual Studio
6. I
n
t
r
o
d
u
cti
o
n
t
o
A
S
P
.
N
E
T
ASP.NET is a web application framework designed and developed by Microsoft.
ASP.NET is open source and a subset of the .NET Framework and successor of the
classic ASP(Active Server Pages). With version 1.0 of the .NET Framework, it was first
released in January 2002. So a question comes to mind that which technology we
were using before the year 2002 for developing web applications and services?
Answer is Classic ASP. So before .NET and ASP.NET there was Classic ASP.
ASP.NET is built on the CLR(Common Language Runtime) which allows the
programmers to execute its code using any .NET language(C#, VB etc.). It is specially
designed to work with HTTP and for web developers to create dynamic web pages,
web applications, web sites, and web services as it provides a good integration of
HTML, CSS, and JavaScript.
.NET Framework is used to create a variety of applications and services like Console,
Web, and Windows, etc. But ASP.NET is only used to create web applications and web
services. Thats why we termed ASP.NET as a subset of the .NET Framework
7. What is ASP.Net
ASP.Net is a web development platform provided by Microsoft. It is used
for creating web-based applications. ASP.Net was first released in the
year 2002.
The first version of ASP.Net deployed was 1.0. The most recent version
of ASP.Net is version 4.6. ASP.Net is designed to work with the HTTP
protocol. This is the standard protocol used across all web applications.
ASP.Net applications can also be written in a variety of .Net languages.
These include C#, VB.Net, and J#. In this chapter, you will see some
basic fundamental of the .Net framework.
The full form of ASP is Active Server Pages, and .NET is Network Enabled
Technologies.
9. ASP.NET ARCHITECTURE
The architecture of the.Net framework is based on the following key
components
Language A variety of languages exists for .net framework. They are
VB.net and C#. These can be used to develop web applications.
Library - The .NET Framework includes a set of standard class libraries.
The most common library used for web applications in .net is the Web
library. The web library has all the necessary components used to
develop.Net web-based applications.
Common Language Runtime - The Common Language Infrastructure or
CLI is a platform. .Net programs are executed on this platform. The CLR
is used for performing key activities. Activities include Exception
handling and Garbage collection
11. COMPONENTS OF .NET
FRAMEWORK
Enterprise applications. It mainly contains two components,
1. Common Language Runtime (CLR)
2. .Net Framework Class Library.
Common Language Runtime (CLR)
.Net Framework provides runtime environment called Common Language Runtime (CLR).It
provides an environment to run all the .Net Programs. The code which runs under the CLR is
called as Managed Code. Programmers need not to worry on managing the memory if the
programs are running under the CLR as it provides memory management and thread
management.
Programmatically, when our program needs memory, CLR allocates the memory for scope and
de-allocates the memory if the scope is completed.
Language Compilers (e.g. C#, VB.Net, J#) will convert the Code/Program to Microsoft
Intermediate Language (MSIL) intern this will be converted to Native Code by CLR. See the
below Fig.
13. COMPONENTS OF .NET
FRAMEWORK
.Net Framework Class Library (FCL)
This is also called as Base Class Library and it is common for all types of
applications i.e. the way you access the Library Classes and Methods in VB.NET
will be the same in C#, and it is common for all other languages in .NET.
The following are different types of applications that can make use of .net class
library.
1. Windows Application.
2. Console Application
3. Web Application.
4. XML Web Services.
5. Windows Services.
14. COMPONENTS OF .NET
FRAMEWORK
Common Type System (CTS)
It describes set of data types that can be used in different .Net languages in common. (i.e), CTS ensures that
objects written in different .Net languages can interact with each other.
For Communicating between programs written in any .NET complaint language, the types have to be compatible
on the basic level.
Common Language Specification (CLS)
It is a sub set of CTS and it specifies a set of rules that needs to be adhered or satisfied by all language compilers
targeting CLR. It helps in cross language inheritance and cross language debugging.
Common language specification Rules:
It describes the minimal and complete set of features to produce code that can be hosted by CLR. It ensures that
products of compilers will work properly in .NET environment.
Sample Rules:
1. Representation of text strings
2. Internal representation of enumerations
3. Definition of static members and this is a subset of the CTS which all .NET languages are expected to support.
4. Microsoft has defined CLS which are nothing but guidelines that language to follow so that it can communicate
with other .NET languages in a seamless manner.
16. CHARACTERISTICS OF .NET
FRAMEWORK
Code Behind Mode This is the concept of separation of design and code. By making this separation, it
becomes easier to maintain the ASP.Net application. The general file type of an ASP.Net file is aspx.
Assume we have a web page called MyPage.aspx. There will be another file called MyPage.aspx.cs which
would denote the code part of the page. So Visual Studio creates separate files for each web page, one
for the design part and the other for the code.
State Management ASP.Net has the facility to control state management. HTTP is known as a stateless
protocol. Let's take an example of a shopping cart application. Now, when a user decides what he wants
to buy from the site, he will press the submit button.
The application needs to remember the items the user choose for the purchase. This is
known as remembering the state of an application at a current point in time. HTTP is a stateless protocol.
When the user goes to the purchase page, HTTP will not store the information on the cart items.
Additional coding needs to be done to ensure that the cart items can be carried forward to the purchase
page. Such an implementation can become complex at times. But ASP.Net can do state management on
your behalf. So ASP.Net can remember the cart items and pass it over to the purchase page.
Caching ASP.Net can implement the concept of Caching. This improve's the performance of the
application. By caching those pages which are often requested by the user can be stored in a temporary
location. These pages can be retrieved faster and better responses can be sent to the user. So caching can
significantly improve the performance of an application.
ASP.Net is a development language used for constructing web-based applications. ASP.Net is designed to
work with the standard HTTP protocol.
18. ASP.Net Lifecycle
1) Application Start - The life cycle of an ASP.NET application starts when a request is
made by a user. This request is to the Web server for the ASP.Net Application. This
happens when the first user normally goes to the home page for the application for the
first time. During this time, there is a method called Application start which is executed by
the web server. Usually, in this method, all global variables are set to their default values.
2) Object creation - The next stage is the creation of the Http Context, Http Request & Http
Response by the web server. The Http Context is just the container for the Http Request
and Http Response objects. The Http Request object contains information about the
current request, including cookies and browser information. The Http Response object
contains the response that is sent to the client.
3) Http Application creation - This object is created by the web server. It is this object that
is used to process each subsequent request sent to the application. For example, let's
assume we have 2 web applications. One is a shopping cart application, and the other is a
news website. For each application, we would have 2 Http Application objects created. Any
further requests to each website would be processed by each Http Application
respectively.
19. ASP. Net Lifecycle
4) Dispose - This event is called before the application instance is
destroyed. During this time, one can use this method to manually
release any unmanaged resources.
5) Application End - This is the final part of the application. In this part,
the application is finally unloaded from memory
21. ASP.Net Page Lifecycle
Page Request- This is when the page is first requested from the server. When the page is requested, the server checks if it is
requested for the first time. If so, then it needs to compile the page, parse the response and send it across to the user. If it is
not the first time the page is requested, the cache is checked to see if the page output exists. If so, that response is sent to the
user.
Page Start During this time, 2 objects, known as the Request and Response object are created. The Request object is used to
hold all the information which was sent when the page was requested. The Response object is used to hold the information
which is sent back to the user.
Page Initialization During this time, all the controls on a web page is initialized. So if you have any label, textbox or any other
controls on the web form, they are all initialized.
Page Load This is when the page is actually loaded with all the default values. So if a textbox is supposed to have a default
value, that value is loaded during the page load time.
Validation Sometimes there can be some validation set on the form. For example, there can be a validation which says that a
list box should have a certain set of values. If the condition is false, then there should be an error in loading the page.
Post back event handling This event is triggered if the same page is being loaded again. This happens in response to an
earlier event. Sometimes there can be a situation that a user clicks on a submit button on the page. In this case, the same page
is displayed again. In such a case, the Post back event handler is called.
Page Rendering This happens just before all the response information is sent to the user. All the information on the form is
saved, and the result is sent to the user as a complete web page.
Unload Once the page output is sent to the user, there is no need to keep the ASP.net web form objects in memory. So the
unloading process involves removing all unwanted objects from memory.
22. STRUCTURE ASP. NET PAGE
The Structure of an ASP.NET Page
The main components of an ASP.NET page are:
Directives
Code Declaration Blocks
ASP.NET Controls
Code Render Blocks
Server-Side Comments
Server-Side Include Directives
Literal Text and HTML Tags.
23. STRUCTURE ASP. NET PAGE
Directives
A directive controls how the page is compiled. It is marked by the tags, <%@ and
%>. It can appear anywhere in a page. But, normally it is placed at the top of a
page. The main types of directives are:
Page
Import
A Page directive is used to specify the default programming language for a page.
<%@ Page Language="C#" %>
OR
<%@ Language="C#" %>
Some namespaces are imported into an ASP.NET page by default. If you wish to use
a class that is not contained in the default namespaces, you must import its
namespace.
<%@ Import Namespace="System.Data.SqlClient" %>
24. STRUCTURE ASP. NET PAGE
Code Declaration Blocks
A code declaration block contains all the application logic for a page. It also includes declarations of global
variables, and functions. It must be written within the script runat= "server" tag.
<script runat=server>
Protected void page_load(object sender,EventArgs e)
{
//statements
}
Protected void btnAdd_click(object sender,EventArgs e)
{
//statements
}
</script>
The <script> tag has two optional parameters:
Language: You can specify the programming language to be used within the <script> tag. Otherwise, the
language specified in the Page directive is used.
SRC: You can specify an external file that contains the code block.
25. STRUCTURE ASP. NET PAGE
Using an external file
<script runat=server src=/slideshow/introduction-to-asp-net-pptxintroduction-to-asp-net-pptx/271351921/external file.aspx/>
<html><head><title>including an external file</title></head>
<form runat=server><center>
<asp:label id=lblmsg runat=server/>
<asp:button id=btnsubmit text=click onclick=btnsubmit_click runat=server/>
</center></form></html>
//the external file /slideshow/introduction-to-asp-net-pptxintroduction-to-asp-net-pptx/271351921/externalfile.aspx is shown below:
Protected void btnsubmit_click(source As object ,E As EventArgs )
{
Lblmsg.text=HelloWorld;
}
There is no difference in output between writing the code on the same page and including
an external script file.
26. STRUCTURE ASP. NET PAGE
ASP.NET Controls
ASP.NET controls can be mixed with text and static HTML in a page. All
controls must appear within a <form runat= "server"> tag. Some controls such
as <span runat= "server"> and the Label control can appear outside this tag.
You can have only one form per page in ASP.NET.
27. STRUCTURE ASP. NET PAGE
Code Render Blocks
If you wish to execute code within HTML, you can include the code within code render
blocks. There are two types of code render blocks:
Inline Code: It executes a statement or series of statements. It is marked by the characters
<% and %>.
Inline Expressions: They display the value of a variable or method. They can be
considered as shorthand notation for the Response. Write method. They are marked by the
characters <%= and %>.
<html>
<head><title>code Render Blocks</title></head>
<%Dim Strvar As String Strvar=this is a test variable1%>
<% =strvar%>
<p>
<% Strvar==this is a test variable2%>
<% =strvar%>< /html>
28. STRUCTURE ASP. NET PAGE
Server-Side Comments
You can add comments in server-side code using the characters <%-- and --%>. The main
use of these comment blocks is to add documentation to a page.
<html>
<head><title>code Render Blocks</title></head>
<%Dim Strvar As String Strvar=this is a test variable1%>
<% =strvar%>
<%--------
<p>
<% Strvar==this is a test variable2%>
<% =strvar%>
--------%>
< /html>
29. STRUCTURE ASP. NET PAGE
Server-Side Include Directives
You can include a file in an ASP.NET page by using a server-side include
directive. It is executed before any of the code in the page. If the file is in the
same directory or in a sub-directory of the page including the file, this
directive is written as:
<!-- #INCLUDE file="includedfile.aspx" -->
You can also specify the virtual path of the file. To include a file located in the
directory MyAspx under the wwwroot directory, you will write the directive as:
<!-- #INCLUDE virtual="/MyAspx/includedfile.aspx" -->
Note: It is recommended that you avoid using server-side include directives. It
is better to use user controls.