ASP.NET is a server-side web application framework designed for web development to produce dynamic web pages. It is an evolution of ASP that uses compiled code instead of interpreted script. ASP.NET uses .NET languages like C# and VB.NET and relies on the .NET Framework. It features controls, validation, strong typing, and other advantages over traditional ASP. Web forms are ASP.NET pages that separate presentation from code behind, while web services expose .NET functionality via XML and SOAP.
This document provides an introduction to ASP.NET and the .NET framework. It discusses how ASP.NET uses programming languages like VB.NET to create dynamic web pages, compared to classic ASP which used scripting languages. The .NET framework compiles all code into Microsoft Intermediate Language (MSIL) and provides a common language runtime (CLR) and class libraries. ASP.NET exposes the .NET framework capabilities to create web forms and web services. Web forms use server controls, events, and a code-behind model to separate design from programming logic.
This document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its relationship to .NET. ASP.NET is a server-side technology that uses fully-fledged programming languages supported by .NET to create dynamic web pages, as opposed to ASP which uses scripting languages. ASP.NET pages make use of WebForms, server controls, user controls and code behind files to separate the programming logic from the presentation layer. The .NET Framework provides common language runtime, base class libraries and other services to ASP.NET and other .NET languages.
The document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its core components. ASP.NET is a server-side technology that uses programming languages like VB.NET to create dynamic web pages, while ASP used scripting languages. ASP.NET pages are compiled into assemblies containing intermediate language code that is executed by the Common Language Runtime on the server. This allows ASP.NET to create robust, secure, and high performing dynamic web applications.
This document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its key components. ASP.NET is a server-side technology that uses fully-fledged programming languages supported by .NET to create dynamic web pages, unlike ASP which used scripting languages. ASP.NET pages contain both a user interface defined in HTML/server controls and a code behind file that contains the programming logic. It leverages the .NET Framework and common language runtime.
Here are the steps to view an assembly:
1. Create a simple class in Visual Basic or C#:
```vb
Public Class MyClass
Public Function SayHello() As String
Return "Hello World"
End Function
End Class
```
2. Compile the class into an assembly (DLL file):
In Visual Studio, build the project. This will compile the code and create an assembly file.
3. View the assembly:
Use Ildasm.exe, the IL Disassembler. This is a tool that comes with the .NET Framework SDK.
Open a command prompt, navigate to the bin folder containing your assembly, and run:
```
ildasm
Here are the steps to view an assembly:
1. Create a simple class in Visual Basic or C#:
```vb
Public Class MyClass
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
```
2. Compile the class into an assembly (DLL file):
```
vbcomp MyClass.vb /target:library
```
3. Use ildasm.exe (IL Disassembler) to view the assembly:
```
ildasm MyClass.dll
```
4. Ildasm will display the assembly contents like types, methods, and metadata. You can view the CIL (intermediate language) code.
The document provides an introduction to ASP.NET, including what ASP is, how ASP.NET builds on ASP, and the key benefits and components of ASP.NET. It discusses how ASP.NET web applications are executed via HTTP requests and responses, and how code is separated from presentation using code-behind files. It also summarizes the basic steps to create a simple ASP.NET application in Visual Studio.
The document discusses the evolution of web development from early standards like HTML and XML to modern frameworks like ASP.NET. It describes classic ASP as the precursor to ASP.NET, noting its limitations like lack of IDE support and interpreted code. The bulk of the document then outlines key features of ASP.NET like its compiled, object-oriented nature and integration with the .NET framework. It also discusses ASP.NET controls, code models, and the separation of markup and code in code-behind files.
This document provides an introduction to ASP.NET and the .NET framework. It discusses how ASP.NET uses programming languages like VB.NET to create dynamic web pages, compared to classic ASP which used scripting languages. The .NET framework compiles all code into Microsoft Intermediate Language (MSIL) and provides a common language runtime (CLR) and class libraries. ASP.NET exposes the .NET framework capabilities to create web forms and web services. Web forms use server controls, events, and a code-behind model to separate design from programming logic.
This document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its relationship to .NET. ASP.NET is a server-side technology that uses fully-fledged programming languages supported by .NET to create dynamic web pages, as opposed to ASP which uses scripting languages. ASP.NET pages make use of WebForms, server controls, user controls and code behind files to separate the programming logic from the presentation layer. The .NET Framework provides common language runtime, base class libraries and other services to ASP.NET and other .NET languages.
The document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its core components. ASP.NET is a server-side technology that uses programming languages like VB.NET to create dynamic web pages, while ASP used scripting languages. ASP.NET pages are compiled into assemblies containing intermediate language code that is executed by the Common Language Runtime on the server. This allows ASP.NET to create robust, secure, and high performing dynamic web applications.
This document provides an introduction to ASP.NET, including what it is, how it differs from ASP, and its key components. ASP.NET is a server-side technology that uses fully-fledged programming languages supported by .NET to create dynamic web pages, unlike ASP which used scripting languages. ASP.NET pages contain both a user interface defined in HTML/server controls and a code behind file that contains the programming logic. It leverages the .NET Framework and common language runtime.
Here are the steps to view an assembly:
1. Create a simple class in Visual Basic or C#:
```vb
Public Class MyClass
Public Function SayHello() As String
Return "Hello World"
End Function
End Class
```
2. Compile the class into an assembly (DLL file):
In Visual Studio, build the project. This will compile the code and create an assembly file.
3. View the assembly:
Use Ildasm.exe, the IL Disassembler. This is a tool that comes with the .NET Framework SDK.
Open a command prompt, navigate to the bin folder containing your assembly, and run:
```
ildasm
Here are the steps to view an assembly:
1. Create a simple class in Visual Basic or C#:
```vb
Public Class MyClass
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
```
2. Compile the class into an assembly (DLL file):
```
vbcomp MyClass.vb /target:library
```
3. Use ildasm.exe (IL Disassembler) to view the assembly:
```
ildasm MyClass.dll
```
4. Ildasm will display the assembly contents like types, methods, and metadata. You can view the CIL (intermediate language) code.
The document provides an introduction to ASP.NET, including what ASP is, how ASP.NET builds on ASP, and the key benefits and components of ASP.NET. It discusses how ASP.NET web applications are executed via HTTP requests and responses, and how code is separated from presentation using code-behind files. It also summarizes the basic steps to create a simple ASP.NET application in Visual Studio.
The document discusses the evolution of web development from early standards like HTML and XML to modern frameworks like ASP.NET. It describes classic ASP as the precursor to ASP.NET, noting its limitations like lack of IDE support and interpreted code. The bulk of the document then outlines key features of ASP.NET like its compiled, object-oriented nature and integration with the .NET framework. It also discusses ASP.NET controls, code models, and the separation of markup and code in code-behind files.
The document provides an overview of ASP.NET compilation and configuration. It discusses how ASP.NET code is compiled into assemblies and MSIL. It also covers the benefits of compilation such as performance, security and stability. Additionally, it describes ASP.NET's compilation architecture including features like multiple language support, automatic compilation, and flexible deployment options. Finally, it discusses website configuration in ASP.NET and how it uses a hierarchical system of configuration.
This document outlines the topics and objectives of a course on building effective web applications with ASP.NET 3.5. The course is aimed at web developers and covers LINQ for database access, ASP.NET AJAX, state management, caching, and security. It provides an overview of ASP.NET 3.5 features and walks through setting up projects, using server controls, master pages, and debugging techniques. Sample code is available from the accompanying book and online.
The document discusses web development using ASP.NET. It begins by outlining the contents which include an introduction to ASP.NET, how it works, and its advantages. It then defines .NET as a framework that provides a common platform to develop and run applications in various languages. ASP.NET is described as being part of the .NET framework and converging ASP and .NET technologies. It provides better user authentication, language support, controls and uses compiled code for improved performance compared to ASP. The document concludes by explaining the process an ASP.NET application follows and some key advantages like easy programming, language flexibility, and security.
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.
The document provides an overview of building web applications using ASP.NET and .NET Framework. It discusses the key features of ASP.NET like server controls, master pages, themes, data access, security etc. It also covers ASP.NET programming basics, different page models, folder structure and the ASP.NET execution model.
The document provides an introduction to the .NET framework. It discusses that .NET is a programming platform that is language-neutral and uses a common runtime and library. It also summarizes that .NET supports building web and Windows applications, uses a common language runtime to execute all languages, and supports languages like C#, Visual Basic, and C++.
The document introduces Microsoft .NET and its tools and frameworks for building web services and mobile applications. It discusses the .NET Framework which includes a common language runtime, base class library, and languages like C# and VB.NET. It also summarizes web forms, web services, Windows forms, and how .NET applications can be built and deployed across platforms in an interoperable way using open standards.
The .NET Framework provides a common platform and language runtime for multiple programming languages. It includes the Common Language Specification (CLS), which defines interoperability standards, and the Common Language Runtime (CLR), which handles memory management, security, and code execution. The .NET Framework also includes a large class library called the Framework Class Library (FCL) that contains types and methods for building applications. Developers can use Visual Studio to create .NET applications using languages like C# and VB.NET, which compile to Microsoft Intermediate Language (MSIL) code that is executed within the CLR.
ASP.NET is a 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 websites, web applications, and web services. ASP.NET uses a compiled execution model whereby code is typically written in C# or Visual Basic .NET and compiled to bytecode that is executed by the Common Language Runtime.
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.
The document provides information about Satyam Software Solutions Pvt. Ltd., including that they develop embedded systems and provide cost-effective solutions for organizations. They are developing a flexible and manageable NANO OS for sensor networks and robotics. They also offer hardware development services like microprocessor board development and custom board development.
This document provides an overview of the .NET framework. It discusses how the .NET framework includes a common language runtime (CLR) that allows applications to be written in multiple languages and executed on different operating systems and processors. It also describes how the .NET framework includes a base class library, Windows forms for building applications, ASP.NET for web applications, ADO.NET for data access, and Visual Studio as an integrated development environment.
The document introduces the .NET Framework. It is a software platform that is language-neutral and provides a common runtime and library for developing applications in any compliant language. The framework offers server-centric application development and includes services like the Common Language Runtime, Windows Forms, ASP.NET, ADO.NET, and tools like Visual Studio.NET. It allows multiple languages to work together and compiles code to an intermediate language to provide a consistent execution environment.
This document discusses ASP.NET, a web development platform from Microsoft that allows building dynamic websites and web applications. It describes ASP.NET's programming models including Web Forms, Web Pages, and MVC. Visual Studio is highlighted as a powerful integrated development environment for ASP.NET. Advantages are full control over HTML/CSS/JavaScript and easy deployment, while a disadvantage is ASP.NET only runs on Windows platforms.
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.
This document provides an overview of web technology fundamentals, including definitions of common terms like Internet, URL, IP address and domain name. It explains how the Internet works using clients, servers, protocols like TCP/IP and standards like HTTP. It also describes markup languages like HTML and scripting languages like ASP and ASP.NET used to build dynamic websites. Finally, it provides a brief comparison of ASP.NET versus PHP and ASP.NET versus Java technologies.
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.
This document provides an introduction and overview of ASP.NET, including what ASP.NET is, how it differs from ASP, ASP.NET files and how ASP.NET works. It describes the ASP.NET lifecycle and architecture. It also discusses ASP.NET page structure, development models including web forms and MVC, and provides examples of ASP.NET code. Key features and potential drawbacks of ASP.NET are summarized.
The document provides an overview of ASP.NET compilation and configuration. It discusses how ASP.NET code is compiled into assemblies and MSIL. It also covers the benefits of compilation such as performance, security and stability. Additionally, it describes ASP.NET's compilation architecture including features like multiple language support, automatic compilation, and flexible deployment options. Finally, it discusses website configuration in ASP.NET and how it uses a hierarchical system of configuration.
This document outlines the topics and objectives of a course on building effective web applications with ASP.NET 3.5. The course is aimed at web developers and covers LINQ for database access, ASP.NET AJAX, state management, caching, and security. It provides an overview of ASP.NET 3.5 features and walks through setting up projects, using server controls, master pages, and debugging techniques. Sample code is available from the accompanying book and online.
The document discusses web development using ASP.NET. It begins by outlining the contents which include an introduction to ASP.NET, how it works, and its advantages. It then defines .NET as a framework that provides a common platform to develop and run applications in various languages. ASP.NET is described as being part of the .NET framework and converging ASP and .NET technologies. It provides better user authentication, language support, controls and uses compiled code for improved performance compared to ASP. The document concludes by explaining the process an ASP.NET application follows and some key advantages like easy programming, language flexibility, and security.
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.
The document provides an overview of building web applications using ASP.NET and .NET Framework. It discusses the key features of ASP.NET like server controls, master pages, themes, data access, security etc. It also covers ASP.NET programming basics, different page models, folder structure and the ASP.NET execution model.
The document provides an introduction to the .NET framework. It discusses that .NET is a programming platform that is language-neutral and uses a common runtime and library. It also summarizes that .NET supports building web and Windows applications, uses a common language runtime to execute all languages, and supports languages like C#, Visual Basic, and C++.
The document introduces Microsoft .NET and its tools and frameworks for building web services and mobile applications. It discusses the .NET Framework which includes a common language runtime, base class library, and languages like C# and VB.NET. It also summarizes web forms, web services, Windows forms, and how .NET applications can be built and deployed across platforms in an interoperable way using open standards.
The .NET Framework provides a common platform and language runtime for multiple programming languages. It includes the Common Language Specification (CLS), which defines interoperability standards, and the Common Language Runtime (CLR), which handles memory management, security, and code execution. The .NET Framework also includes a large class library called the Framework Class Library (FCL) that contains types and methods for building applications. Developers can use Visual Studio to create .NET applications using languages like C# and VB.NET, which compile to Microsoft Intermediate Language (MSIL) code that is executed within the CLR.
ASP.NET is a 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 websites, web applications, and web services. ASP.NET uses a compiled execution model whereby code is typically written in C# or Visual Basic .NET and compiled to bytecode that is executed by the Common Language Runtime.
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.
The document provides information about Satyam Software Solutions Pvt. Ltd., including that they develop embedded systems and provide cost-effective solutions for organizations. They are developing a flexible and manageable NANO OS for sensor networks and robotics. They also offer hardware development services like microprocessor board development and custom board development.
This document provides an overview of the .NET framework. It discusses how the .NET framework includes a common language runtime (CLR) that allows applications to be written in multiple languages and executed on different operating systems and processors. It also describes how the .NET framework includes a base class library, Windows forms for building applications, ASP.NET for web applications, ADO.NET for data access, and Visual Studio as an integrated development environment.
The document introduces the .NET Framework. It is a software platform that is language-neutral and provides a common runtime and library for developing applications in any compliant language. The framework offers server-centric application development and includes services like the Common Language Runtime, Windows Forms, ASP.NET, ADO.NET, and tools like Visual Studio.NET. It allows multiple languages to work together and compiles code to an intermediate language to provide a consistent execution environment.
This document discusses ASP.NET, a web development platform from Microsoft that allows building dynamic websites and web applications. It describes ASP.NET's programming models including Web Forms, Web Pages, and MVC. Visual Studio is highlighted as a powerful integrated development environment for ASP.NET. Advantages are full control over HTML/CSS/JavaScript and easy deployment, while a disadvantage is ASP.NET only runs on Windows platforms.
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.
This document provides an overview of web technology fundamentals, including definitions of common terms like Internet, URL, IP address and domain name. It explains how the Internet works using clients, servers, protocols like TCP/IP and standards like HTTP. It also describes markup languages like HTML and scripting languages like ASP and ASP.NET used to build dynamic websites. Finally, it provides a brief comparison of ASP.NET versus PHP and ASP.NET versus Java technologies.
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.
This document provides an introduction and overview of ASP.NET, including what ASP.NET is, how it differs from ASP, ASP.NET files and how ASP.NET works. It describes the ASP.NET lifecycle and architecture. It also discusses ASP.NET page structure, development models including web forms and MVC, and provides examples of ASP.NET code. Key features and potential drawbacks of ASP.NET are summarized.
HijackLoader Evolution: Interactive Process HollowingDonato Onofri
CrowdStrike researchers have identified a HijackLoader (aka IDAT Loader) sample that employs sophisticated evasion techniques to enhance the complexity of the threat. HijackLoader, an increasingly popular tool among adversaries for deploying additional payloads and tooling, continues to evolve as its developers experiment and enhance its capabilities.
In their analysis of a recent HijackLoader sample, CrowdStrike researchers discovered new techniques designed to increase the defense evasion capabilities of the loader. The malware developer used a standard process hollowing technique coupled with an additional trigger that was activated by the parent process writing to a pipe. This new approach, called "Interactive Process Hollowing", has the potential to make defense evasion stealthier.
Gen Z and the marketplaces - let's translate their needsLaura Szabó
The product workshop focused on exploring the requirements of Generation Z in relation to marketplace dynamics. We delved into their specific needs, examined the specifics in their shopping preferences, and analyzed their preferred methods for accessing information and making purchases within a marketplace. Through the study of real-life cases , we tried to gain valuable insights into enhancing the marketplace experience for Generation Z.
The workshop was held on the DMA Conference in Vienna June 2024.
Discover the benefits of outsourcing SEO to Indiadavidjhones387
"Discover the benefits of outsourcing SEO to India! From cost-effective services and expert professionals to round-the-clock work advantages, learn how your business can achieve digital success with Indian SEO solutions.
1. Introduction to ASP.NET
• What is ASP.NET and how is different from ASP
– ASP: server side technology for creating dynamic web pages
using scripting languages eg vb script.
– ASP.NET: server side technology for creating dynamic web pages
using Fully Fledged programming languages supported by .NET
– VB.NET: our chosen language for writing ASP.NET pages
2. What is .NET?
• A Microsoft strategy and new technology for delivering software
services to the desktop and to the web
• Components include:
– MS Intermediate Language; all code is complied into a more abstract,
trimmed version before execution. All .NET languages are compiled to
MSIL – the common language of .NET
– The CLR- common language runtime; responsible for executing MSIL
code; interfaces to Windows and IIS
– A rich set of libraries (Framework Class Libraries) available to all .NET
languages
– The .NET languages such as C#, VB.NET etc that conform to CLR
– ASP.NET is how the Framework is exposed to the web, using IIS to
manage simple pages of code so that they can be complied into full .NET
programs. These generate HTML for the browser.
• Built on open protocols (XML, SOAP)
• Future for development of MS & non-MS based systems.
• Also heading towards the “Internet Operating System”
3. Common Language
Runtime Type System
Compilers use the runtime type system to produce type
compatible components
Components
Compilers
Common Type System
C# VB C++
Runtime Environment
4. Robust And Secure
• Native code compilation
MSIL
No interpreter
Install-time or run-time IL to native compilation
• Code correctness and type-safety
IL can be verified to guarantee type-safety
No unsafe casts, no uninitialized variables, no out-of-bounds array
indexing
• Evidence-based security
Policy grants permissions based on evidence (signatures, origin)
5. .NET Execution Model
VB VC ... Script
IL
Native
Code
Native
Code
Common Language Runtime
Standard JIT
Compiler
6. Common Language Runtime
• Lightweight Just-in-time compiler:
– MSIL to Native machine language; Can be ported to numerous platforms
• The compiled code is transformed into an intermediate language
called the Microsoft Intermediate Language (MSIL or IL)
• An integer in Visual Basic .NET or an int in C# are converted to
the same .NET data type, which is Int32
• The IL that is created is the same for all languages
• The assembly is the compiled .NET program
• The assembly contains the IL along with additional information
called metadata
• Metadata contains information about the assembly
• Use the IL Disassembler (ildasm.exe) to view the IL within an
assembly
7. Framework Overview
Base Class Library
Common Language Specification
Common Language Runtime
Data and XML
VB C++ C#
Visual
Studio.NET
Web Forms
(ASP.NET)
JScript …
Win Forms
8. .NET Framework Architecture
Common Language Runtime
Metadata
Type System Execution
System Base Framework
IO Net Security ServiceProcess
ADO.NET XML SQL Threading
System.Web
Web Services Web Forms
ASP.NET Application Services
System.WinForms
Controls Drawing
Windows Application Services
9. Namespace
• The base class libraries are organized into logical
groupings of code called namespaces
• A namespace is a hierarchical way to identify
resources in .NET
• The System object is at the top of the namespace
hierarchy, and all objects inherit from it
– ASP.NET: System.Web namespace
– WebForms: System.Web.UI namespace
– HTML Server Controls:
System.Web.UI.Control.HTMLControl
– ASP.NET Server Controls:
System.Web.UI.Control.WebControl
10. Importing Namespaces
• Visual Studio .NET adds references to your projects’
commonly used namespaces by default
• You can import the namespaces into your page using
the @Import directive
• The following is the syntax for importing a .NET
namespace
<%@ Import NamespaceName %>
• Below is a sample of how you would import the
ASP.NET Page class
<%@ Imports System.Web.UI.Page %>
11. Some ASP.NET namespaces
System Defines fundamental data types eg
system.string
System.Collections Definitions and classes for creating
various collections
System.IO File reading & writing operations
System.Web Support browser/server
communication
System.Web.UI Creates the Page object whenever
an .aspx page is requested
System.Web.UI.web
controls
Classes and definitions to create
server controls
12. ASP.NET – class browser
• ASP.NET provides a means of exposing the .NET
Framework and its functionality to the WWW
• Contains a number of pre-built types that take
input from .NET types and represents them in a
form for the web (such as HTML)
• Class browser (over 9000 classes; lists the
namespaces):
13. ASP.NET
• The latest version of ASP is known as ASP.NET
• Visual Studio .NET is a developer application used to
create ASP.NET Web applications
• There are two main types of Web resources created
with ASP.NET applications
– WebForms are ASP.NET pages within an ASP.NET
application
– Web Services are ASP.NET Web pages that contain
publicly exposed code so that other applications can
interact with them
– Web Services are identified with the file extension .asmx
14. WebForms
• The ASP.NET WebForm is separated into two
logical areas:
– The HTML template
– A collection of code behind the WebForm
• The HTML template
– Contains the design layout, content, and the controls
– Creates the user interface, or presentation layer
– Instructs the browser how to format the Web page
– Is created using a combination of HTML controls,
HTML Server controls, Mobile Controls, and ASP.NET
controls
15. Server Controls
• HTML Server controls are similar to the HTML
controls, except they are processed by the server
• Add runat = "server" to the HTML control to
transform it into an HTML Server control
• HTML control: <input type="text">
• HTML Server control:
<input type="text" runat="server"/>
<input type=”radio” runat=”server” value=”Yes”/> Yes
• Server-side programs can interact with the control
before it is rendered as a plain HTML control and
sent to the browser
16. ASP.NET Controls
• ASP.NET form controls will create the HTML code
• ASP.NET Server controls are organized as:
– ASP.NET Form Controls
– Data Validation Controls
– User Controls
– Mobile Controls
• ASP.NET controls are usually identified with the
prefix asp: followed by the name of the control
• ASP.NET button:
<asp:Button id="ShowBtn" runat="server"
Text="Show the message." />
17. HTML Server Vs
ASP.NET Server, Controls
• ASP.NET form controls can interact with client-
side events such as when the user clicks on a
button
– When the event occurs, ASP.NET can trigger a script to
run on the server
• ASP.NET form controls also have different
properties than their HTML server control
counterparts
– HTML Server label control
• Message1.InnerHTML = "Product 1"
– ASP server label control
• Message2.Text = "Product 2"
18. User Controls
• User controls are external files that can be
included within another WebForm
• User controls allow you to reuse code across
multiple files
• For example, you can create a user control that
displays the a navigation bar
• You can use this control on the home page; they
are often used for creating self-contained code,
headers, menus, and footers
• User controls replace the functionality of ASP
server-side include pages
• They are identified with the file extension .asmx
19. Other ASP.NET Server Controls
• Data validation controls
– A series of controls that validate form data without extensive
JavaScript programming
• Mobile controls
– A series of controls that provide form functionality within
wireless and mobile devices
• Literal controls
– Page content that is not assigned to a specific HTML control
such as a combination of HTML tags and text to the browser
20. Server Controls within
Visual Studio .NET
• In Visual Studio
.NET most of the
ASP.NET Server
controls are located
on the Web Forms
tab in the toolbox
Server controls with Visual Studio.NET
21. The Code Behind
• Server programs are written in a separate file
known as the code behind the page
• By separating the programming logic and
presentation layer, the application becomes
easier to maintain
• Only Server controls can interact with the code
behind the page
– Written in any ASP.NET compatible language such
as Visual Basic .NET, C#, Perl, or Java
– Filename is the same as the WebForm filename
– Add a file extension that identifies the language
• Visual Basic .NET use .vb (mypage.aspx.vb)
• C# use .cs (mypage.aspx.cs)
22. Code Behind file
• The location of the code behind the page is determined
via a property that is set on the first line in the page
using the @Page directive
<%@ Page Language="vb" Codebehind="WebForm1.vb"
Inherits=“MyFirstApp.WebForm1"%>
• The @Page directive allows you to set the default
properties for the entire page such as the default
language
• The CodeBehind property identifies the path and
filename of the code behind file
• The Inherits property indicates that the code behind the
page inherits the page class
• This page class contains the compiled code for this
page
23. Compiling the Page Class
• The compiled code behind the page is the class
definition for the page
– A class is a named logical grouping of code
– The class definition contains the functions, methods, and
properties that belong to that class
• In Visual Studio .NET the process of compiling a
class is called building
– When you build the application, you compile the code
into an executable file
– Visual Studio .NET compiles the code behind the page
into an executable file and places the file in the bin
directory
24. Page Class Events
• The Page Class consists of a variety of methods,
functions, and properties that can be accessed
within the code behind the page
• The first time a page is requested by a client, a
series of page events occurs
• The first page event is the Page_Init event
which initializes the page control hierarchy
• The Page_Load event loads any server controls
into memory and occurs every time the page is
executed
26. Web Services
• Web Services also provide a means to
expose .NET functionality on the web but
Web Services expose functionality via XML
and SOAP (cf: function calls over the web)
27. Web Services
• If your business partner is Course Technology
and you want to query that company’s product
catalog from your Web site, you could:
– Post a link
– Scrape a Web site (use a program to view a Web site and
capture the source code)
– Provide a Web Service to their catalog application
• Web Services are used to create business-to-
business applications
– Web Services allow you to expose part or all of your
programs over the Internet. The Web Service source file
has the extension .asmx
– A public registry known as UDDI contains registered
public Web Services. Third party Web Services are
available at http://www.xmethods.com
28. Web application project files
AssemblyInfo.vb Info about the compiled project file stored in
/bin and named project.dll
Global.asax Event handler commands visible to all web
forms in a project
Global.asax.resx Define application resources such as text
strings, images. Can change without
recompiling project.
Global.asax.vb Asp.net code for application events eg
session.start
Project.sln Stores links to all project files
Project.suo VS.NET IDE configuration info for the proj.
Project.vbproj Configuration and build settings for project
files.
29. Web application project files cont.
Project.vbproj.webinfo URL to project web server
Project.vsdisco Enables search for web services
Styles.css Project style sheet
Web.config Project and folder configuration information
Webform.aspx Web form .aspx file;Html
Webform.aspx.resx Resources in corresponding web form
Webform.aspx.vb Code written for the form (code behind)
Binproject.dll Compiled project output file (assembly)
Binproject.pdb Debugging information used by developer
30. The lab environment.
• Each machine is set up to be an IIS server –
http://localhost:1900/…..
• You create your web projects with Visual Studio.Net.
VS.NET will create a subdirectory in c:/inetpub/wwwroot
for your project. You must copy this subdirectory when
moving to another machine or home.
• URL
– http://localhost:1900/MyfirstApp/homepage.aspx
• Alternative to VS.Net is webmatrix
31. ASP.NET Vs PHP
Feature PHP ASP.NET
HTML Yes Yes
CSS Yes Yes
‘php Templates’ Yes UserControls
ServerControls
(buttons,grids etc)
No Yes
Javascript Yes Yes + Validation controls
Database Conn Yes Yes
Cookies & Sessions Yes Yes
VIEWSTATE No Yes
POSTBACK No Yes