SlideShare uma empresa Scribd logo
1 de 22
Creating ASP.NET Web Form
Session 5
Objectives
• Learn how to create Web Form in .NET
Platform using Visual Studio.
• ASP.NET Page lifecycle.
Introduction
• What is a Web Form?
Ans:-
A web form on a web page allows a user to
enter data that is sent to a server for
processing. And Server process the web page
& send HTML stream to the client.
Steps to create ASP.NETWeb
Form
• To create a Web form in ASP.NET we need
the Visual Studio.Net.
• Under the ‘File’ menu we need to click on
New-Web Site or we can simply press
Shift+Alt+N from the keyboard.
• A new window will appear. The name of the
window will be ‘New Web Site’. It will look
like this…
Steps to create a ASP.NETWeb
Form(Contd.)
• If we press on ‘Ok’ the ‘Default.aspx”
window will generate where the HTML code
will be written.
• It calls the ‘Code-behind’.
• It will be look like this…
Steps to create ASP.NETWeb
Form(Contd.)
• After that we have to put the mouse pointer
over the Solution Explore.
• On the Solution Explorer we need to double
click on ‘Default.aspx.cs’ option under the
‘Default.aspx’.
• It will open the C# devolvement window. Here
we can write the C# coding for the Web site.
• It calls the ‘Code inline’.
Steps to create ASP.NETWeb
Form(Contd.)
• Now we need to design our Web site.
• For that we need to go to ‘Designer’ pane.
• It may be find on the Solution Explore.
• Using the dedicated Toolbox option we can
add numerous controls on the ‘Design’ pane.
Steps to create ASP.NETWeb
Form(Contd.)
• Let us create the simple ‘Hello World’
programming for our first ASP.NET Web
form.
• On that program we will understand what we
can do on the ‘Design’ pane.
• The first page will show us the ‘Hello World’
message on the web browser without any
controls.
• It will be like this…
Steps to create ASP.NET Web
Form(Contd.)
• The code for the web form will be…
• Now we will format the output on the ‘Design’
window using a simple control- Label control.
• It will look like this…..
Steps to create ASP.NET Web
Form(Contd.)
• The code for the web form will be…
Sequence of ASP.NET events
1)Page Init
2)Page Load
3)Controls Events
4)Page Unload events
Page Init events only occurs when 1st
time the page is
started, But Page Load occurs in subsequent request
of the page.
** Page Load event guarantees that all controls are
fully loaded.
Summary
• Web Page Created.
• Steps of web page creation.

Mais conteúdo relacionado

Mais procurados

Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net Ajax
Jeff Blankenburg
 
ASP.NET Session 4
ASP.NET Session 4ASP.NET Session 4
ASP.NET Session 4
Sisir Ghosh
 
Windows Phone Workshop: WCF services
Windows Phone Workshop: WCF services Windows Phone Workshop: WCF services
Windows Phone Workshop: WCF services
Zayen Chagra
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kit
Vidhi Patel
 

Mais procurados (20)

Anypoint lessons
Anypoint lessonsAnypoint lessons
Anypoint lessons
 
Ajax control asp.net
Ajax control asp.netAjax control asp.net
Ajax control asp.net
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net Ajax
 
Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Ajax and ASP.NET AJAX
Ajax and ASP.NET AJAXAjax and ASP.NET AJAX
Ajax and ASP.NET AJAX
 
ASP.NET Session 4
ASP.NET Session 4ASP.NET Session 4
ASP.NET Session 4
 
2310 b 06
2310 b 062310 b 06
2310 b 06
 
Ajaxppt
AjaxpptAjaxppt
Ajaxppt
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
 
Windows Phone Workshop: WCF services
Windows Phone Workshop: WCF services Windows Phone Workshop: WCF services
Windows Phone Workshop: WCF services
 
2310 b 08
2310 b 082310 b 08
2310 b 08
 
MVC 3-RAZOR Validation
MVC 3-RAZOR ValidationMVC 3-RAZOR Validation
MVC 3-RAZOR Validation
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kit
 
Asp 2-createaspnetmvc
Asp 2-createaspnetmvcAsp 2-createaspnetmvc
Asp 2-createaspnetmvc
 
Github plugin setup in anypointstudio
Github plugin setup in anypointstudioGithub plugin setup in anypointstudio
Github plugin setup in anypointstudio
 
Visual studio 2008 asp net
Visual studio 2008 asp netVisual studio 2008 asp net
Visual studio 2008 asp net
 
Creating custom Validators on Reactive Forms using Angular 6
Creating custom Validators on Reactive Forms using Angular 6Creating custom Validators on Reactive Forms using Angular 6
Creating custom Validators on Reactive Forms using Angular 6
 
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
Building a Blogging System -- Rapidly using Alpha Five v10 with Codeless AJAX...
 
Mule esb
Mule esbMule esb
Mule esb
 

Semelhante a ASP.NET Session 5

Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7
helpido9
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry university
lhkslkdh89009
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
Mani Chaubey
 
Presentation1
Presentation1Presentation1
Presentation1
nhuthi
 

Semelhante a ASP.NET Session 5 (20)

Web services in asp.net
Web services in asp.netWeb services in asp.net
Web services in asp.net
 
Introducing asp.net web pages 2
Introducing asp.net web pages 2Introducing asp.net web pages 2
Introducing asp.net web pages 2
 
Asp.net w3schools
Asp.net w3schoolsAsp.net w3schools
Asp.net w3schools
 
Creating & consuming simple web service
Creating & consuming simple web serviceCreating & consuming simple web service
Creating & consuming simple web service
 
Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7
 
How Create an Animated Web Banner with InDesign & in5
How Create an Animated Web Banner with InDesign & in5How Create an Animated Web Banner with InDesign & in5
How Create an Animated Web Banner with InDesign & in5
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry university
 
Walkthrough asp.net
Walkthrough asp.netWalkthrough asp.net
Walkthrough asp.net
 
IE9 for developers
IE9 for developersIE9 for developers
IE9 for developers
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
A career in web development | the user | web development essentials!
A career in web development | the user | web development essentials!A career in web development | the user | web development essentials!
A career in web development | the user | web development essentials!
 
Uklug2009 Hairy Bikers Cookbook
Uklug2009   Hairy Bikers CookbookUklug2009   Hairy Bikers Cookbook
Uklug2009 Hairy Bikers Cookbook
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 
Auto cad ribbon
Auto cad ribbonAuto cad ribbon
Auto cad ribbon
 
Presentation1
Presentation1Presentation1
Presentation1
 
German introduction to sp framework
German   introduction to sp frameworkGerman   introduction to sp framework
German introduction to sp framework
 
Avocode's Sketch plugin
Avocode's Sketch pluginAvocode's Sketch plugin
Avocode's Sketch plugin
 
02 asp.net session02
02 asp.net session0202 asp.net session02
02 asp.net session02
 
Introduction to VB.Net.pptx
Introduction to VB.Net.pptxIntroduction to VB.Net.pptx
Introduction to VB.Net.pptx
 
ASP.NET Basics
ASP.NET Basics ASP.NET Basics
ASP.NET Basics
 

Mais de Sisir Ghosh

ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
Sisir Ghosh
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
Sisir Ghosh
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
Sisir Ghosh
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
Sisir Ghosh
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
Sisir Ghosh
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
Sisir Ghosh
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
Sisir Ghosh
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
Sisir Ghosh
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
Sisir Ghosh
 
Network security
Network securityNetwork security
Network security
Sisir Ghosh
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
Sisir Ghosh
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Sisir Ghosh
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
Sisir Ghosh
 
Application layer
Application layerApplication layer
Application layer
Sisir Ghosh
 

Mais de Sisir Ghosh (16)

ASP.NET Session 2
ASP.NET Session 2ASP.NET Session 2
ASP.NET Session 2
 
ASP.NET Session 3
ASP.NET Session 3ASP.NET Session 3
ASP.NET Session 3
 
ASP.NET Session 7
ASP.NET Session 7ASP.NET Session 7
ASP.NET Session 7
 
ASP.NET Session 8
ASP.NET Session 8ASP.NET Session 8
ASP.NET Session 8
 
ASP.NET Session 11 12
ASP.NET Session 11 12ASP.NET Session 11 12
ASP.NET Session 11 12
 
ASP.NET Session 13 14
ASP.NET Session 13 14ASP.NET Session 13 14
ASP.NET Session 13 14
 
ASP.NET Session 16
ASP.NET Session 16ASP.NET Session 16
ASP.NET Session 16
 
ASP.NET System design 2
ASP.NET System design 2ASP.NET System design 2
ASP.NET System design 2
 
ASP.NET Session 1
ASP.NET Session 1ASP.NET Session 1
ASP.NET Session 1
 
Transport layer
Transport layerTransport layer
Transport layer
 
Routing
RoutingRouting
Routing
 
Network security
Network securityNetwork security
Network security
 
Module ii physical layer
Module ii physical layerModule ii physical layer
Module ii physical layer
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Overview of data communication and networking
Overview of data communication and networkingOverview of data communication and networking
Overview of data communication and networking
 
Application layer
Application layerApplication layer
Application layer
 

Último

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

ASP.NET Session 5

  • 1. Creating ASP.NET Web Form Session 5
  • 2. Objectives • Learn how to create Web Form in .NET Platform using Visual Studio. • ASP.NET Page lifecycle.
  • 3. Introduction • What is a Web Form? Ans:- A web form on a web page allows a user to enter data that is sent to a server for processing. And Server process the web page & send HTML stream to the client.
  • 4. Steps to create ASP.NETWeb Form • To create a Web form in ASP.NET we need the Visual Studio.Net. • Under the ‘File’ menu we need to click on New-Web Site or we can simply press Shift+Alt+N from the keyboard. • A new window will appear. The name of the window will be ‘New Web Site’. It will look like this…
  • 5.
  • 6. Steps to create a ASP.NETWeb Form(Contd.) • If we press on ‘Ok’ the ‘Default.aspx” window will generate where the HTML code will be written. • It calls the ‘Code-behind’. • It will be look like this…
  • 7.
  • 8. Steps to create ASP.NETWeb Form(Contd.) • After that we have to put the mouse pointer over the Solution Explore. • On the Solution Explorer we need to double click on ‘Default.aspx.cs’ option under the ‘Default.aspx’. • It will open the C# devolvement window. Here we can write the C# coding for the Web site. • It calls the ‘Code inline’.
  • 9.
  • 10. Steps to create ASP.NETWeb Form(Contd.) • Now we need to design our Web site. • For that we need to go to ‘Designer’ pane. • It may be find on the Solution Explore. • Using the dedicated Toolbox option we can add numerous controls on the ‘Design’ pane.
  • 11.
  • 12.
  • 13. Steps to create ASP.NETWeb Form(Contd.) • Let us create the simple ‘Hello World’ programming for our first ASP.NET Web form. • On that program we will understand what we can do on the ‘Design’ pane. • The first page will show us the ‘Hello World’ message on the web browser without any controls. • It will be like this…
  • 14.
  • 15. Steps to create ASP.NET Web Form(Contd.) • The code for the web form will be…
  • 16.
  • 17. • Now we will format the output on the ‘Design’ window using a simple control- Label control. • It will look like this…..
  • 18.
  • 19. Steps to create ASP.NET Web Form(Contd.) • The code for the web form will be…
  • 20.
  • 21. Sequence of ASP.NET events 1)Page Init 2)Page Load 3)Controls Events 4)Page Unload events Page Init events only occurs when 1st time the page is started, But Page Load occurs in subsequent request of the page. ** Page Load event guarantees that all controls are fully loaded.
  • 22. Summary • Web Page Created. • Steps of web page creation.