SlideShare una empresa de Scribd logo
1 de 34
Descargar para leer sin conexión
6/17/2013 1
SETEC Institute [Web Development
with ASP.NET , prepare by ASP.NET
Lecturer Team.]
ASP.NET Overview
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
2
 ASP.NET is a Microsoft technology for building web applications
that leverages all the fantastic technologies you can find in .NET
Framework.
 ASP.NET is an exciting web programming technology pioneered by
Microsoft that allows developers to create dynamic web pages.
 ASP.NET is a robust and mature technology. ASP.NET version 1.0
was released in January 2002 and quickly became the web
programming technology of choice for many. In November 2005,
Microsoft released the much-anticipated version 2.0. Two years
later, in November 2007, Microsoft released ASP.NET version 3.5.
And ASP.NET 4 was unveiled in April 2010.
 SQL Server 2008 is a database engine, which is a specialized
application designed to efficiently store and query data. Many
websites interact with databases; any ecommerce website, for
example, displays product information and records purchase orders
in a database.
ASP.NET websites and web pages
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
3
 ASP.NET web pages are simple text files, meaning that you
can create them using any text editor (such as Microsoft
Notepad), but if you’ve created websites before, you know that
using a tool such as Microsoft Expression
 Web or Adobe Dreamweaver makes the development process
much easier than using a generic text editor such as Notepad.
This is the case for ASP.NET, as well.
 Before we create our first ASP.NET website, we need to install
the .NET Framework, Visual Web Developer, and SQL Server.
 The .NET Framework is a rich platform for creating Windows-
based applications and is the underlying technology used to
create ASP.NET websites.
Dynamic Website with ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
4
Web Application
6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.]
5
 A collection of Web Pages, comprising images, video,
and other digital assets providing relevant
information.
 A Web Application make use of the Internet to make
itself accessible to users from all over the world
through web browsers.
 In order to develop Web application, one should be
well-conversant with ASP.NET technology.
The Usage of Web Applications
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
6
Web Applications serve the following fields:
 Communication
 Shopping
 Searching
 Education
 Entertainment
What is ASP.NET?
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
7
 ASP.NET is only one of many technologies that can
be employed to create dynamic web pages.
 A technology to develop content-rich dynamic and
personalized websites.
 Developing ASP.NET Web application is similar to
developing Widows applications.
 The fundamental component of ASP.NET is the Web
Form.
 An ASP.NET web application can have one or more
Web Forms.
How does ASP.NET work?
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
8
The Constituents of ASP.NET Application
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
9
 Web Forms or .aspx Pages
 A web page that the user view in the web browser.
 A dynamic page that accesses server resources.
 It provides the UI for the Web Application.
 Code-behind pages
 Pages associated with Web Forms and contain the server-side
code for the Web Form such as VB.NET, C#.NET, J# …ect.
 Configuration files
 XML file that defines the default settings for Web Application
and the Web Server.
The Constituents of ASP.NET Application
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
10
 Global.asax file
 The file contains the code required to respond to application-
level events that are raised by ASP.NET.
 XML Web Service links
 They allow Web Applications to send/receive the data from an
XML Web service.
 Database Connectivity
 It allows Web applications to transfer the date to/from
database sources.
 Caching
 It allows Web applications to return Web Forms and data
more quickly after the first request.
Basic Principle of ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
11
 Developing ASP.NET bases on CLR shared by all
.NET Applications
 Developers can write code in ASP.NET by using
programming language supported .NET framework
such as C#, VB.NET, … and some third party
language such as PERL, or COBOL.
 ASP.NET use .NET framework as an infrastructure
so with the rich set of features of the .NET controls,
classes and tools can cut down the development
times.
ASP.NET Coding Techniques
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
12
 The methodologies use for writing code in a Web
application.
 ASP.NET supports two different code techniques:
 Single-file page model: developers write code directly in the
Web Form.
 Code-behind page model: developers write code on another
page for the Web Form.
Single-File Page Model
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
13
<%@ Page Language="VB" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<script runat="server">
Protected Sub Button1_Click(ByVal sender As Object,
ByVal e As System.EventArgs)
Label1.Text = "Hello " & Textbox1.Text
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Simple Page</title>
</head>
<body>
<form id="form1" runat="server">
What is your name?<br />
<asp:Textbox ID="Textbox1" Runat="server"></asp:Textbox><br />
<asp:Button ID="Button1" Runat="server" Text="Submit" OnClick="Button1_Click" />
<p><asp:Label ID="Label1" Runat="server"></asp:Label></p>
</form>
</body>
</HTML>
Code-Behind Page Model
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
14
< %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" % >
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >
< html xmlns="http://www.w3.org/1999/xhtml" >
< head runat="server" >
< title > Simple Page < /title >
< /head >
< body >
< form id="form1" runat="server" >
What is your name? < br / >
< asp:Textbox ID="Textbox1" Runat="server" > < /asp:Textbox > < br / >
< asp:Button ID="Button1" Runat="server" Text="Submit" OnClick="Button1_Click" / >
< p > < asp:Label ID="Label1" Runat="server" > < /asp:Label > < /p >
< /form >
< /body >
< /html > Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles
Button1.Click
Label1.Text = "Hello " & TextBox1.Text
End Sub
End Class
.aspx Code page
.aspx.vb Code page
Code Declaration Blocks
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
15
 Code declaration blocks are used to
define the sections of sever-side code
that is embedded in
The global.asax file within the <script>
blocks and
Set the attribute runat=“server”.
Getting start with ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
18
 To start experiencing ASP.NET, all you have to do is
open Visual Studio and create a new web project. In
this first part, we’re going to use Web Forms as our
model.
 ASP.NET pages contain server controls, namely
objects. A server control is a server-side
programmable piece of a page.
 A Web Form is usually composed of two files
 A markup file : refers to a designing page
 A code file : is commonly referred to as code behind or code
beside
Getting start with ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
19
 ASP.NET provides a transparent mechanism to handle
page compilation.
 The first time a user requests a page, if it’s not yet
compiled, both the page and its code are grouped and
compiled to disk. What happens next is similar to what
happens for other requests: the page is instantiated,
rendered, and served in the browser as HTML. This
process is completely transparent to the developer.
 ASP.NET continuously watches the file and, in case of
modifications, automatically discards the old version.
The new version is compiled instead, using the
previously exposed flow.
Getting start with ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
20
Typical Architecture in ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
21
Starting Visual Studio 2012
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
22
=> Start => All Programs => Microsoft Visual Studio 2012
Creating a new Web Application with
Visual Studio 2012
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
23
=> File => New => Web Site
Creating a new Web Application
with Visual Studio 2012
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
24
=> You will see a window looks like
First New Web Site with
Visual Studio 2012 Looks Like
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
25
 The default web page look like
Creating a New Web page for the Web Site
with Visual Studio 2012
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
26
File => New => File
The below Window will appears:
Visual Studio 2012 Environment
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
27
Server Explorer
for
Database
Connection
To show code-design page
ToolBox for
Designing
To show Design Form
Solution Explorer to
show all pages
Properties window
to set properties
To run the Web Page
First Program with ASP.NET
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
28
 The Web page below, you will design an .aspx page
with
 A TextArea name txtName
 A Label named lblWelcome
 A Button named btnOK
 When the Page load, you have to enter your name
into the TextBox.
 After that, you click on the Button. Then the label
will display the welcome sentence.
Solving Problem
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
29
1. Start a new Web Site naming “Ch1”
Solving Problem
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
30
2. Start a new Web page/form naming “Ch1_1.aspx”
Solving Problem
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
31
3. Add the page controls using ToolBox and Set properties
- TextBox
o ID : txtName
o BackColor : Light Yellow
o ForeColor : Blue
- Label
o ID : lblWelcome
o Text :
o BackColor : Light Orange
o ForeColor : Dark Red
- Button
o ID : btnOK
o Text : OK
Solving Problem
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
32
4. Write code for the Button to display the welcome
sentence in the label.
Double click on the button on the .aspx design page to
write behind code on .aspx.vb code page. Then write code as
below.
Running the Web Page
6/17/2013SETEC Institute [Web Development with
ASP.NET , prepare by ASP.NET Lecturer Team.]
33
Run the Web page and enter the name Click on “OK”.
End
6/17/2013 34SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.]
Summary
6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 35
1. ASP.NET is not a programming language but is a dot net
technology for Internet Programming.
2. ASP.NET is a powerful for developing aWebApplication.
3. Web page is a page or form in a website.
4. Web application is a web site containing as many pages and
data stored in a database.
5. Contents of dynamic web application are normally stored in
a database that can be loaded to the page and the page
contain only controls.
6. Visual Studio is an IDE for all the Microsoft .Net framework
form and window development.
Review Questions
6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 36
1. What and Why ASP.NET?
2. What are the three layer technology?
3. What is a web page? a web site? an web
application?
4. How to create a new web site? a new web page?
5. What are the constituents of ASP.NET?
6. What are the two coding techniques supported by
ASP.NET 4.0?

Más contenido relacionado

La actualidad más candente

Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netPankaj Kushwaha
 
Modern Web App Architectures
Modern Web App ArchitecturesModern Web App Architectures
Modern Web App ArchitecturesRaphael Stary
 
Asp.Net 2.0 Presentation
Asp.Net 2.0 PresentationAsp.Net 2.0 Presentation
Asp.Net 2.0 Presentationsasidhar
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTDr. Awase Khirni Syed
 
ASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVCASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVCBilal Amjad
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkBob German
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnetrsnarayanan
 
Chris O'Brien - Introduction to the SharePoint Framework for developers
Chris O'Brien - Introduction to the SharePoint Framework for developersChris O'Brien - Introduction to the SharePoint Framework for developers
Chris O'Brien - Introduction to the SharePoint Framework for developersChris O'Brien
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetAdil Mughal
 
The road to professional web development
The road to professional web developmentThe road to professional web development
The road to professional web developmentChristian Heilmann
 
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALAACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALASaikiran Panjala
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deploymentrsnarayanan
 
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - referenceChris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - referenceChris O'Brien
 

La actualidad más candente (20)

Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.net
 
ASP
ASPASP
ASP
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 
Asp.Net Tutorials
Asp.Net TutorialsAsp.Net Tutorials
Asp.Net Tutorials
 
Modern Web App Architectures
Modern Web App ArchitecturesModern Web App Architectures
Modern Web App Architectures
 
Asp.Net 2.0 Presentation
Asp.Net 2.0 PresentationAsp.Net 2.0 Presentation
Asp.Net 2.0 Presentation
 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENT
 
ASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVCASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVC
 
TypeScript and SharePoint Framework
TypeScript and SharePoint FrameworkTypeScript and SharePoint Framework
TypeScript and SharePoint Framework
 
Harish Understanding Aspnet
Harish Understanding AspnetHarish Understanding Aspnet
Harish Understanding Aspnet
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 
Walther Ajax4
Walther Ajax4Walther Ajax4
Walther Ajax4
 
Chris O'Brien - Introduction to the SharePoint Framework for developers
Chris O'Brien - Introduction to the SharePoint Framework for developersChris O'Brien - Introduction to the SharePoint Framework for developers
Chris O'Brien - Introduction to the SharePoint Framework for developers
 
DevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp NetDevNext - Web Programming Concepts Using Asp Net
DevNext - Web Programming Concepts Using Asp Net
 
The road to professional web development
The road to professional web developmentThe road to professional web development
The road to professional web development
 
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALAACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
 
Harish Aspnet Deployment
Harish Aspnet DeploymentHarish Aspnet Deployment
Harish Aspnet Deployment
 
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - referenceChris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
Chris O'Brien - Modern SharePoint sites and the SharePoint Framework - reference
 

Destacado

Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with spparallelminder
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentalsnilesh67
 
Review Materi ASP.NET
Review Materi ASP.NETReview Materi ASP.NET
Review Materi ASP.NETDudy Ali
 
Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1asim78
 
Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2asim78
 
Computer Notes
Computer NotesComputer Notes
Computer NotesEHSAN KHAN
 
Bai giang asp.net full
Bai giang asp.net fullBai giang asp.net full
Bai giang asp.net fullLy hai
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web FormsSAMIR BHOGAYTA
 
01 Computer Forensics Fundamentals - Notes
01 Computer Forensics Fundamentals - Notes01 Computer Forensics Fundamentals - Notes
01 Computer Forensics Fundamentals - NotesKranthi
 
FUNDAMENTALS OF COMPUTER
FUNDAMENTALS OF COMPUTERFUNDAMENTALS OF COMPUTER
FUNDAMENTALS OF COMPUTERthanathip
 
Visual basic asp.net programming introduction
Visual basic asp.net programming introductionVisual basic asp.net programming introduction
Visual basic asp.net programming introductionHock Leng PUAH
 
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPager
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPagerBài 6: Điều khiển DetailsView, FormView, ListView, DataPager
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPagerMasterCode.vn
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notesWE-IT TUTORIALS
 
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3WE-IT TUTORIALS
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web ApplicationRishi Kothari
 

Destacado (20)

Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Miao
MiaoMiao
Miao
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Review Materi ASP.NET
Review Materi ASP.NETReview Materi ASP.NET
Review Materi ASP.NET
 
E sampark with c#.net
E sampark with c#.netE sampark with c#.net
E sampark with c#.net
 
Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1Asp.Net 3 5 Part 1
Asp.Net 3 5 Part 1
 
Computer Notes
Computer Notes Computer Notes
Computer Notes
 
Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2
 
Computer Notes
Computer NotesComputer Notes
Computer Notes
 
Bai giang asp.net full
Bai giang asp.net fullBai giang asp.net full
Bai giang asp.net full
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
 
01 Computer Forensics Fundamentals - Notes
01 Computer Forensics Fundamentals - Notes01 Computer Forensics Fundamentals - Notes
01 Computer Forensics Fundamentals - Notes
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
FUNDAMENTALS OF COMPUTER
FUNDAMENTALS OF COMPUTERFUNDAMENTALS OF COMPUTER
FUNDAMENTALS OF COMPUTER
 
Visual basic asp.net programming introduction
Visual basic asp.net programming introductionVisual basic asp.net programming introduction
Visual basic asp.net programming introduction
 
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPager
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPagerBài 6: Điều khiển DetailsView, FormView, ListView, DataPager
Bài 6: Điều khiển DetailsView, FormView, ListView, DataPager
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
tybsc it sem 5 Linux administration notes of unit 1,2,3,4,5,6 version 3
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 

Similar a Chapter 1 (asp.net over view)

Aspnet2.0 Introduction
Aspnet2.0 IntroductionAspnet2.0 Introduction
Aspnet2.0 IntroductionChanHan Hy
 
Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023CMARIX TechnoLabs
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Web Development with ASP.NET: Taking Control of the Digital World
Web Development with ASP.NET: Taking Control  of the Digital WorldWeb Development with ASP.NET: Taking Control  of the Digital World
Web Development with ASP.NET: Taking Control of the Digital Worldcompany
 
Unlocking the Power of ASP.NET: A Comprehensive Guide
Unlocking the Power of ASP.NET: A Comprehensive GuideUnlocking the Power of ASP.NET: A Comprehensive Guide
Unlocking the Power of ASP.NET: A Comprehensive GuideTyrion Lannister
 
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...WDP Technologies
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdfSonia Simi
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologiesHosam Kamel
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication developmentKBA Systems
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication developmentKBA Systems
 
A Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdfA Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdflubnayasminsebl
 
ASP.NET Core Web Development From Beginner to Pro.pdf
ASP.NET Core Web Development From Beginner to Pro.pdfASP.NET Core Web Development From Beginner to Pro.pdf
ASP.NET Core Web Development From Beginner to Pro.pdflubnayasminsebl
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptxNareshSoni23
 
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfAsp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfIntegrated IT Solutions
 

Similar a Chapter 1 (asp.net over view) (20)

Aspnet2.0 Introduction
Aspnet2.0 IntroductionAspnet2.0 Introduction
Aspnet2.0 Introduction
 
Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023Benefits of Using ASP.NET For Web Development for Businesses In 2023
Benefits of Using ASP.NET For Web Development for Businesses In 2023
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Web Development with ASP.NET: Taking Control of the Digital World
Web Development with ASP.NET: Taking Control  of the Digital WorldWeb Development with ASP.NET: Taking Control  of the Digital World
Web Development with ASP.NET: Taking Control of the Digital World
 
Unlocking the Power of ASP.NET: A Comprehensive Guide
Unlocking the Power of ASP.NET: A Comprehensive GuideUnlocking the Power of ASP.NET: A Comprehensive Guide
Unlocking the Power of ASP.NET: A Comprehensive Guide
 
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
Top 8 Reasons ASP.NET Core is the Best Framework for Web Application Developm...
 
Asp.net Web Development.pdf
Asp.net Web Development.pdfAsp.net Web Development.pdf
Asp.net Web Development.pdf
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication development
 
Workspace on asp.net web aplication development
Workspace on asp.net  web aplication developmentWorkspace on asp.net  web aplication development
Workspace on asp.net web aplication development
 
Food borne human diseases
Food borne human diseasesFood borne human diseases
Food borne human diseases
 
Asp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdfAsp.net Vs Vue.js.pdf
Asp.net Vs Vue.js.pdf
 
A Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdfA Deep Dive into Android App Development 2.0.pdf
A Deep Dive into Android App Development 2.0.pdf
 
ASP.NET Core Web Development From Beginner to Pro.pdf
ASP.NET Core Web Development From Beginner to Pro.pdfASP.NET Core Web Development From Beginner to Pro.pdf
ASP.NET Core Web Development From Beginner to Pro.pdf
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptx
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdfAsp Net Vs Vue JS Which One You Should Choose for Development.pdf
Asp Net Vs Vue JS Which One You Should Choose for Development.pdf
 

Más de let's go to study (20)

Rs instructor ppt_chapter11_final
Rs instructor ppt_chapter11_finalRs instructor ppt_chapter11_final
Rs instructor ppt_chapter11_final
 
Ch10
Ch10Ch10
Ch10
 
Before beginning
Before beginningBefore beginning
Before beginning
 
Chapter 8 (security)
Chapter 8 (security)Chapter 8 (security)
Chapter 8 (security)
 
Chapter 7 (ado.net)
Chapter 7 (ado.net)Chapter 7 (ado.net)
Chapter 7 (ado.net)
 
Chapter 6 (data binding)
Chapter 6 (data binding)Chapter 6 (data binding)
Chapter 6 (data binding)
 
Chapter 5 (master page)
Chapter 5 (master page)Chapter 5 (master page)
Chapter 5 (master page)
 
Chapter 4 (navigater)
Chapter 4 (navigater)Chapter 4 (navigater)
Chapter 4 (navigater)
 
Chapter 3 (validation control)
Chapter 3 (validation control)Chapter 3 (validation control)
Chapter 3 (validation control)
 
Chapter 2 (web servercontrol)
Chapter 2 (web servercontrol)Chapter 2 (web servercontrol)
Chapter 2 (web servercontrol)
 
Before beginning
Before beginningBefore beginning
Before beginning
 
Sadchap04
Sadchap04Sadchap04
Sadchap04
 
Sadchap03
Sadchap03Sadchap03
Sadchap03
 
Sadchap02
Sadchap02Sadchap02
Sadchap02
 
Sadchap01
Sadchap01Sadchap01
Sadchap01
 
database design process
database design processdatabase design process
database design process
 
009 sql server management studio
009 sql server management studio009 sql server management studio
009 sql server management studio
 
007 sql server-installation
007 sql server-installation007 sql server-installation
007 sql server-installation
 
Chapter 2-html-tage
Chapter 2-html-tageChapter 2-html-tage
Chapter 2-html-tage
 
Chapter 0 before you start
Chapter 0   before you startChapter 0   before you start
Chapter 0 before you start
 

Último

Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsArubSultan
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...HetalPathak10
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Association for Project Management
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesVijayaLaxmi84
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEMISSRITIMABIOLOGYEXP
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroomSamsung Business USA
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptxmary850239
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQuiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptxmary850239
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineCeline George
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfChristalin Nelson
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWQuiz Club NITW
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptxmary850239
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxSayali Powar
 

Último (20)

Shark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristicsShark introduction Morphology and its behaviour characteristics
Shark introduction Morphology and its behaviour characteristics
 
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
Satirical Depths - A Study of Gabriel Okara's Poem - 'You Laughed and Laughed...
 
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
Team Lead Succeed – Helping you and your team achieve high-performance teamwo...
 
prashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Professionprashanth updated resume 2024 for Teaching Profession
prashanth updated resume 2024 for Teaching Profession
 
Sulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their usesSulphonamides, mechanisms and their uses
Sulphonamides, mechanisms and their uses
 
CARNAVAL COM MAGIA E EUFORIA _
CARNAVAL COM MAGIA E EUFORIA            _CARNAVAL COM MAGIA E EUFORIA            _
CARNAVAL COM MAGIA E EUFORIA _
 
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFEPART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
PART 1 - CHAPTER 1 - CELL THE FUNDAMENTAL UNIT OF LIFE
 
6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom6 ways Samsung’s Interactive Display powered by Android changes the classroom
6 ways Samsung’s Interactive Display powered by Android changes the classroom
 
4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx4.9.24 Social Capital and Social Exclusion.pptx
4.9.24 Social Capital and Social Exclusion.pptx
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITWQ-Factor General Quiz-7th April 2024, Quiz Club NITW
Q-Factor General Quiz-7th April 2024, Quiz Club NITW
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx4.11.24 Poverty and Inequality in America.pptx
4.11.24 Poverty and Inequality in America.pptx
 
How to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command LineHow to Uninstall a Module in Odoo 17 Using Command Line
How to Uninstall a Module in Odoo 17 Using Command Line
 
DBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdfDBMSArchitecture_QueryProcessingandOptimization.pdf
DBMSArchitecture_QueryProcessingandOptimization.pdf
 
Mythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITWMythology Quiz-4th April 2024, Quiz Club NITW
Mythology Quiz-4th April 2024, Quiz Club NITW
 
4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx4.9.24 School Desegregation in Boston.pptx
4.9.24 School Desegregation in Boston.pptx
 
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptxBIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
BIOCHEMISTRY-CARBOHYDRATE METABOLISM CHAPTER 2.pptx
 

Chapter 1 (asp.net over view)

  • 1. 6/17/2013 1 SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.]
  • 2. ASP.NET Overview 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 2  ASP.NET is a Microsoft technology for building web applications that leverages all the fantastic technologies you can find in .NET Framework.  ASP.NET is an exciting web programming technology pioneered by Microsoft that allows developers to create dynamic web pages.  ASP.NET is a robust and mature technology. ASP.NET version 1.0 was released in January 2002 and quickly became the web programming technology of choice for many. In November 2005, Microsoft released the much-anticipated version 2.0. Two years later, in November 2007, Microsoft released ASP.NET version 3.5. And ASP.NET 4 was unveiled in April 2010.  SQL Server 2008 is a database engine, which is a specialized application designed to efficiently store and query data. Many websites interact with databases; any ecommerce website, for example, displays product information and records purchase orders in a database.
  • 3. ASP.NET websites and web pages 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 3  ASP.NET web pages are simple text files, meaning that you can create them using any text editor (such as Microsoft Notepad), but if you’ve created websites before, you know that using a tool such as Microsoft Expression  Web or Adobe Dreamweaver makes the development process much easier than using a generic text editor such as Notepad. This is the case for ASP.NET, as well.  Before we create our first ASP.NET website, we need to install the .NET Framework, Visual Web Developer, and SQL Server.  The .NET Framework is a rich platform for creating Windows- based applications and is the underlying technology used to create ASP.NET websites.
  • 4. Dynamic Website with ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 4
  • 5. Web Application 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 5  A collection of Web Pages, comprising images, video, and other digital assets providing relevant information.  A Web Application make use of the Internet to make itself accessible to users from all over the world through web browsers.  In order to develop Web application, one should be well-conversant with ASP.NET technology.
  • 6. The Usage of Web Applications 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 6 Web Applications serve the following fields:  Communication  Shopping  Searching  Education  Entertainment
  • 7. What is ASP.NET? 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 7  ASP.NET is only one of many technologies that can be employed to create dynamic web pages.  A technology to develop content-rich dynamic and personalized websites.  Developing ASP.NET Web application is similar to developing Widows applications.  The fundamental component of ASP.NET is the Web Form.  An ASP.NET web application can have one or more Web Forms.
  • 8. How does ASP.NET work? 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 8
  • 9. The Constituents of ASP.NET Application 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 9  Web Forms or .aspx Pages  A web page that the user view in the web browser.  A dynamic page that accesses server resources.  It provides the UI for the Web Application.  Code-behind pages  Pages associated with Web Forms and contain the server-side code for the Web Form such as VB.NET, C#.NET, J# …ect.  Configuration files  XML file that defines the default settings for Web Application and the Web Server.
  • 10. The Constituents of ASP.NET Application 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 10  Global.asax file  The file contains the code required to respond to application- level events that are raised by ASP.NET.  XML Web Service links  They allow Web Applications to send/receive the data from an XML Web service.  Database Connectivity  It allows Web applications to transfer the date to/from database sources.  Caching  It allows Web applications to return Web Forms and data more quickly after the first request.
  • 11. Basic Principle of ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 11  Developing ASP.NET bases on CLR shared by all .NET Applications  Developers can write code in ASP.NET by using programming language supported .NET framework such as C#, VB.NET, … and some third party language such as PERL, or COBOL.  ASP.NET use .NET framework as an infrastructure so with the rich set of features of the .NET controls, classes and tools can cut down the development times.
  • 12. ASP.NET Coding Techniques 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 12  The methodologies use for writing code in a Web application.  ASP.NET supports two different code techniques:  Single-file page model: developers write code directly in the Web Form.  Code-behind page model: developers write code on another page for the Web Form.
  • 13. Single-File Page Model 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 13 <%@ Page Language="VB" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <script runat="server"> Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Label1.Text = "Hello " & Textbox1.Text End Sub </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>Simple Page</title> </head> <body> <form id="form1" runat="server"> What is your name?<br /> <asp:Textbox ID="Textbox1" Runat="server"></asp:Textbox><br /> <asp:Button ID="Button1" Runat="server" Text="Submit" OnClick="Button1_Click" /> <p><asp:Label ID="Label1" Runat="server"></asp:Label></p> </form> </body> </HTML>
  • 14. Code-Behind Page Model 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 14 < %@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" % > < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" > < html xmlns="http://www.w3.org/1999/xhtml" > < head runat="server" > < title > Simple Page < /title > < /head > < body > < form id="form1" runat="server" > What is your name? < br / > < asp:Textbox ID="Textbox1" Runat="server" > < /asp:Textbox > < br / > < asp:Button ID="Button1" Runat="server" Text="Submit" OnClick="Button1_Click" / > < p > < asp:Label ID="Label1" Runat="server" > < /asp:Label > < /p > < /form > < /body > < /html > Partial Class _Default Inherits System.Web.UI.Page Protected Sub Button1_Click(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles Button1.Click Label1.Text = "Hello " & TextBox1.Text End Sub End Class .aspx Code page .aspx.vb Code page
  • 15. Code Declaration Blocks 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 15  Code declaration blocks are used to define the sections of sever-side code that is embedded in The global.asax file within the <script> blocks and Set the attribute runat=“server”.
  • 16. Getting start with ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 18  To start experiencing ASP.NET, all you have to do is open Visual Studio and create a new web project. In this first part, we’re going to use Web Forms as our model.  ASP.NET pages contain server controls, namely objects. A server control is a server-side programmable piece of a page.  A Web Form is usually composed of two files  A markup file : refers to a designing page  A code file : is commonly referred to as code behind or code beside
  • 17. Getting start with ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 19  ASP.NET provides a transparent mechanism to handle page compilation.  The first time a user requests a page, if it’s not yet compiled, both the page and its code are grouped and compiled to disk. What happens next is similar to what happens for other requests: the page is instantiated, rendered, and served in the browser as HTML. This process is completely transparent to the developer.  ASP.NET continuously watches the file and, in case of modifications, automatically discards the old version. The new version is compiled instead, using the previously exposed flow.
  • 18. Getting start with ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 20
  • 19. Typical Architecture in ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 21
  • 20. Starting Visual Studio 2012 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 22 => Start => All Programs => Microsoft Visual Studio 2012
  • 21. Creating a new Web Application with Visual Studio 2012 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 23 => File => New => Web Site
  • 22. Creating a new Web Application with Visual Studio 2012 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 24 => You will see a window looks like
  • 23. First New Web Site with Visual Studio 2012 Looks Like 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 25  The default web page look like
  • 24. Creating a New Web page for the Web Site with Visual Studio 2012 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 26 File => New => File The below Window will appears:
  • 25. Visual Studio 2012 Environment 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 27 Server Explorer for Database Connection To show code-design page ToolBox for Designing To show Design Form Solution Explorer to show all pages Properties window to set properties To run the Web Page
  • 26. First Program with ASP.NET 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 28  The Web page below, you will design an .aspx page with  A TextArea name txtName  A Label named lblWelcome  A Button named btnOK  When the Page load, you have to enter your name into the TextBox.  After that, you click on the Button. Then the label will display the welcome sentence.
  • 27. Solving Problem 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 29 1. Start a new Web Site naming “Ch1”
  • 28. Solving Problem 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 30 2. Start a new Web page/form naming “Ch1_1.aspx”
  • 29. Solving Problem 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 31 3. Add the page controls using ToolBox and Set properties - TextBox o ID : txtName o BackColor : Light Yellow o ForeColor : Blue - Label o ID : lblWelcome o Text : o BackColor : Light Orange o ForeColor : Dark Red - Button o ID : btnOK o Text : OK
  • 30. Solving Problem 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 32 4. Write code for the Button to display the welcome sentence in the label. Double click on the button on the .aspx design page to write behind code on .aspx.vb code page. Then write code as below.
  • 31. Running the Web Page 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 33 Run the Web page and enter the name Click on “OK”.
  • 32. End 6/17/2013 34SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.]
  • 33. Summary 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 35 1. ASP.NET is not a programming language but is a dot net technology for Internet Programming. 2. ASP.NET is a powerful for developing aWebApplication. 3. Web page is a page or form in a website. 4. Web application is a web site containing as many pages and data stored in a database. 5. Contents of dynamic web application are normally stored in a database that can be loaded to the page and the page contain only controls. 6. Visual Studio is an IDE for all the Microsoft .Net framework form and window development.
  • 34. Review Questions 6/17/2013SETEC Institute [Web Development with ASP.NET , prepare by ASP.NET Lecturer Team.] 36 1. What and Why ASP.NET? 2. What are the three layer technology? 3. What is a web page? a web site? an web application? 4. How to create a new web site? a new web page? 5. What are the constituents of ASP.NET? 6. What are the two coding techniques supported by ASP.NET 4.0?