SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Building Web Applications Ch. Vishwa Mohan Freelance Software Consultant & Corporate Trainer
Table of Contents ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Introducing .NET &  ASP.NET
What is .NET Framework ? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
.NET Framework Platform & Tools Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms  Web Services Windows® Forms Common Language Specification VB C++ C# J# …
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],What is ASP.NET  ?
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],ASP.NET Features
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],New Features of ASP.NET 2.0 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],New Features of ASP.NET 3.0
[object Object],[object Object],[object Object],[object Object],[object Object],New Features of ASP.NET 3.5
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Introducing Visual Studio
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Features of  Visual Studio
Creating & Programming Web Applications
Creating Simple Web Site ,[object Object],[object Object]
First look at Web Application ,[object Object],[object Object]
Code Page ,[object Object],[object Object]
Adding new Web Page
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Web Pages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Differences between Page Models ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
File Options Using Code-Behind File Options Created Files Web Form .aspx file .aspx.cs or .aspx.vb Master Page .master file .master.cs or .master.vb Web User Control .ascx file .ascx.cs or .ascx.vb Web Service .asmx file .cs or .vb file Trace Handlers trace.axd
Some Interested Files in ASP.NET File Usage AssemblyInfo.cs or vb A project information file contains metadata about the assemblies in a project, such as name, culture and version info.  Web.config  An XML based file that contains configuration data on-each unique URL resource used in the project  Global.asax.cs or vb   An optional file for handling application level events. Eg: Application_OnError, Session_OnStart, etc.,  Styles.css  Cascade style sheet.
ASP.NET Application Folders ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
ASP.NET Execution Model
ASP.NET Execution Model
Execution Model with Session State
Thank You !

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction to ASP.NET Core
Introduction to ASP.NET CoreIntroduction to ASP.NET Core
Introduction to ASP.NET CoreAvanade Nederland
 
Dom(document object model)
Dom(document object model)Dom(document object model)
Dom(document object model)Partnered Health
 
Visual Programming
Visual ProgrammingVisual Programming
Visual ProgrammingBagzzz
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asppriya Nithya
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...Edureka!
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptWalid Ashraf
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net frameworkThen Murugeshwari
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal Ji Singh
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life CycleAbhishek Sur
 
JavaScript: Variables and Functions
JavaScript: Variables and FunctionsJavaScript: Variables and Functions
JavaScript: Variables and FunctionsJussi Pohjolainen
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net frameworkArun Prasad
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web ApplicationRishi Kothari
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentationdimuthu22
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET frameworkRicha Handa
 

Was ist angesagt? (20)

Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Basics of JavaScript
Basics of JavaScriptBasics of JavaScript
Basics of JavaScript
 
Introduction to ASP.NET Core
Introduction to ASP.NET CoreIntroduction to ASP.NET Core
Introduction to ASP.NET Core
 
Dom(document object model)
Dom(document object model)Dom(document object model)
Dom(document object model)
 
Visual Programming
Visual ProgrammingVisual Programming
Visual Programming
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
 
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
Node.js Tutorial for Beginners | Node.js Web Application Tutorial | Node.js T...
 
Jdbc ppt
Jdbc pptJdbc ppt
Jdbc ppt
 
Asp Architecture
Asp ArchitectureAsp Architecture
Asp Architecture
 
Lab #2: Introduction to Javascript
Lab #2: Introduction to JavascriptLab #2: Introduction to Javascript
Lab #2: Introduction to Javascript
 
Architecture of .net framework
Architecture of .net frameworkArchitecture of .net framework
Architecture of .net framework
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
ASP.NET Page Life Cycle
ASP.NET Page Life CycleASP.NET Page Life Cycle
ASP.NET Page Life Cycle
 
JavaScript: Variables and Functions
JavaScript: Variables and FunctionsJavaScript: Variables and Functions
JavaScript: Variables and Functions
 
Introduction to .net framework
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
 
.Net Core
.Net Core.Net Core
.Net Core
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
TypeScript - An Introduction
TypeScript - An IntroductionTypeScript - An Introduction
TypeScript - An Introduction
 
VB.NET:An introduction to Namespaces in .NET framework
VB.NET:An introduction to  Namespaces in .NET frameworkVB.NET:An introduction to  Namespaces in .NET framework
VB.NET:An introduction to Namespaces in .NET framework
 

Ähnlich wie Building Web Apps with ASP.NET Ch. V

Ähnlich wie Building Web Apps with ASP.NET Ch. V (20)

Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
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
 
Asp.net
Asp.netAsp.net
Asp.net
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
Top 10 -  ASP.NET Interview Questions And Answers 2023.pdfTop 10 -  ASP.NET Interview Questions And Answers 2023.pdf
Top 10 - ASP.NET Interview Questions And Answers 2023.pdf
 
As pnet
As pnetAs pnet
As pnet
 
Asp.Net Tutorials
Asp.Net TutorialsAsp.Net Tutorials
Asp.Net Tutorials
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Asp.net server controls
Asp.net server controlsAsp.net server controls
Asp.net server controls
 
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
 
Super billing asp.net
Super billing   asp.netSuper billing   asp.net
Super billing asp.net
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 

Mehr von Iblesoft

Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server iiIblesoft
 
MS SQL Server 1
MS SQL Server 1MS SQL Server 1
MS SQL Server 1Iblesoft
 
Master pages ppt
Master pages pptMaster pages ppt
Master pages pptIblesoft
 
State management
State managementState management
State managementIblesoft
 
State management
State managementState management
State managementIblesoft
 
Validation controls ppt
Validation controls pptValidation controls ppt
Validation controls pptIblesoft
 
Generics n delegates
Generics n delegatesGenerics n delegates
Generics n delegatesIblesoft
 
Data controls ppt
Data controls pptData controls ppt
Data controls pptIblesoft
 
Microsoft.net architecturte
Microsoft.net architecturteMicrosoft.net architecturte
Microsoft.net architecturteIblesoft
 
Delegates and events
Delegates and eventsDelegates and events
Delegates and eventsIblesoft
 
Javascript
JavascriptJavascript
JavascriptIblesoft
 
Exception handling
Exception handlingException handling
Exception handlingIblesoft
 

Mehr von Iblesoft (17)

Ms sql server ii
Ms sql server  iiMs sql server  ii
Ms sql server ii
 
MS SQL Server 1
MS SQL Server 1MS SQL Server 1
MS SQL Server 1
 
Master pages ppt
Master pages pptMaster pages ppt
Master pages ppt
 
State management
State managementState management
State management
 
State management
State managementState management
State management
 
Validation controls ppt
Validation controls pptValidation controls ppt
Validation controls ppt
 
Controls
ControlsControls
Controls
 
Ado.net
Ado.netAdo.net
Ado.net
 
Generics n delegates
Generics n delegatesGenerics n delegates
Generics n delegates
 
Ajaxppt
AjaxpptAjaxppt
Ajaxppt
 
Data controls ppt
Data controls pptData controls ppt
Data controls ppt
 
Microsoft.net architecturte
Microsoft.net architecturteMicrosoft.net architecturte
Microsoft.net architecturte
 
Generics
GenericsGenerics
Generics
 
Delegates and events
Delegates and eventsDelegates and events
Delegates and events
 
Javascript
JavascriptJavascript
Javascript
 
Html ppt
Html pptHtml ppt
Html ppt
 
Exception handling
Exception handlingException handling
Exception handling
 

Kürzlich hochgeladen

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 

Kürzlich hochgeladen (20)

Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 

Building Web Apps with ASP.NET Ch. V

  • 1. Building Web Applications Ch. Vishwa Mohan Freelance Software Consultant & Corporate Trainer
  • 2.
  • 4.
  • 5. .NET Framework Platform & Tools Operating System Common Language Runtime Base Class Library ADO.NET and XML ASP.NET Web Forms Web Services Windows® Forms Common Language Specification VB C++ C# J# …
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Creating & Programming Web Applications
  • 14.
  • 15.
  • 16.
  • 18.
  • 19.
  • 20. File Options Using Code-Behind File Options Created Files Web Form .aspx file .aspx.cs or .aspx.vb Master Page .master file .master.cs or .master.vb Web User Control .ascx file .ascx.cs or .ascx.vb Web Service .asmx file .cs or .vb file Trace Handlers trace.axd
  • 21. Some Interested Files in ASP.NET File Usage AssemblyInfo.cs or vb A project information file contains metadata about the assemblies in a project, such as name, culture and version info. Web.config An XML based file that contains configuration data on-each unique URL resource used in the project Global.asax.cs or vb An optional file for handling application level events. Eg: Application_OnError, Session_OnStart, etc., Styles.css Cascade style sheet.
  • 22.
  • 25. Execution Model with Session State

Hinweis der Redaktion

  1. Th
  2. Some of the useful classes in .NET are: Application SystemInformation Clipboard Convert
  3. .NET Framework Services: ASP.NET Web Forms Windows Forms ADO.NET XML support throughout. The .NET framework is designed from the ground up for a web services world. XML is natively supported. There is built-in support for building, publishing and consuming web services. With inherent support for web standards such as SOAP and XML, the .Net framework is designed for high availability and reliability, i.e., you have secure mobile code. The programming model is very much simplified resulting in high-productivity application development with lot less plumbing required. It is now easier to deploy, run and maintain your application components, version them as required and have them available to other applications and services. The Object model is built in and not bolted on, so multi-language development becomes simple. There are no additional rules or APIs to learn. Deployment is very much simplified; there is no registration required. So, here’s what’s underneath the covers of our next generation development platform. Lets drill down into each of these boxes and see how they all fit together as the pieces that make up the .Net Framework. Common Language Runtime : the common infrastructure upon which entire .net framework is built. Before COM, applications were completely separate entities with little or no integration COM provides a way for components to integrate. However, each component must provide the “plumbing” and objects cannot directly interact. With the .NET Framework common language runtime, components are built on a common substrate. No “plumbing” is needed and objects can directly interact. The CLR provides a rich run-time environment Riding on the CLR, you have Class libraries : the comprehensive programming interface to .net platform. The .NET framework provides a rich set of class libraries, ADO.NET and XML, and Windows Forms for rich, Win32 applications. ADO.NET: Data and XML - ADO.NET is an evolutionary improvement to ADO that provides platform interoperability and scalable data access. Because XML is the format for transmitting data, any application that can read the XML format can process data. In fact, the receiving component need not be an ADO.NET component at all. It might be a Visual Studio-based solution or any application running on any platform. ASP.NET : unified web development platform that provides the services necessary for developers to build enterprise-class web applications. With the .NET framework, you can now build web services that can then be consumed by any other application independent of platform or location. This is a very powerful way to build, deploy and run scalable, distributed web applications that can run on any browser or device. Programming Languages – all built to a common language specification. The unified programming model results in consistent API availability regardless of language and programming model. It’s possible to have cross language inheritance and exceptions. We have a highly leverage toolset with debuggers etc. working with all languages. We currently have over 20 third party languages supported in the .NET framework including VB, C++, C#, Java, JScript, Perl, COBOL etc. Visual Studio. NET : Finally, supporting the entire platform, is the Visual Studio development environment that can be used to built scalable enterprise applications taking advantage of the rich functionality of the .NET framework. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  4. ADO classes are now part of .NET Scripts in ASP.NET are executed on the server. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  5. ADO classes are now part of .NET The old ASP uses interpreted languages to accomplish the construction of the final HTML document before it was sent to the browser. But ASP.NET uses truly compiled language to accomplish the same task. So ASP.NET building web pages based on objects in a compiled environment. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  6. ADO classes are now part of .NET The SQL Cache invalidation means, Before ASP.NET 2.0 it is possible to cache the results came from SQL server and update the cache based on time interval. In this case within updation period unable to get fresh data. Sometimes even though the data is not changed it need to update. With SQL Cache invalidation when result set from SQL server changes, the output cache is triggered to change and the end user always see the latest result set. The new controls introduced with ASP.NET 2.0 are: New Data controls (GridView, FormView, DetailsView) , Login controls, Navigation controls, Declarative data access controls (SqlDataSource, ObjectDataSource, XmlDataSource controls). To limit wabpages to be viewed by members only a set of new API, Controls and Providers are supported in ASP.NET 2.0 Personalization is closely tied to the membership and role infrastructure. The personalization settings are capable to store either Access or SQL server built into ASP.NET. In ASP.NET 2.0 the navigation made easy by supporting series of site navigation controls. ASP.NET 2.0 now include the capability to automatically precompile your ASP.NET applications directly. Themes are new way to providing a common look and feel to your site across every page. ASP.NET 2.0 supports a couple of providers that allow you to store user information. Here you have flexibility and power to store either in SQL server or Oracle or some other stuff. Basically this provider sits between your control/application and back end database. Some of the providers are: SqlMembershipProvider: It provides you the capability to use the membership system to connect to SQL Server 2000 or SQL Server 2005 SqlRoleProvider XmlSiteMapProvider SqlProfieProvider SqlPersonalizationProvider. To use these providers in your application you have make appropriate configuration through web.config file and reference it from your application. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  7. ADO classes are now part of .NET 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  8. Language Integrated Query ( LINQ , pronounced "link") is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages using a syntax reminiscent of SQL. Many of the concepts that LINQ has introduced were originally tested in Microsoft's Cω research project. LINQ was released as a part of .NET Framework 3.5 on November 19, 2007. The ListView new data control that displays data and that provides a highly customizable UI. It combines the many aspects of existing data controls. The ListView control is useful for displaying data in any repeating structure, similar to the DataList and Repeater controls. Unlike those controls, the ListView control supports edit, insert, and delete operations as well as sorting and paging. The paging functionality is provided for ListView by the new DataPager control. The DataPager control is used to page through data that is displayed by a control that implements the IPageableItemContainer interface, such as the ListView control. The DataPager control supports built-in paging UI 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  9. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  10. To support all MSDN documentation is available for Visual Studio. Project management tools for creating and managing application files, including deployment locally, intranet or over the Internet. Just explain about Toolbox, Solution Explorer, Server Explorer, Properties Window. SmartTag support for some controls. Some of the Code Snippets are: Random number generator, Iterating Hash table using For each, Determining is folder exists? To invoke code snippet, right click on code editor, select Insert Snippet, you will find a lot of snippets. The pre compile option allows : You to deploy only executable code. So you protect to your intellectual property (i.e., source code). It finds any compile-time errors in the page are its dependencies. Finally, pre-compiling improves performance and reduces the time it takes for pages in your web site in your web site to render the first time. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  11. Creating Web site from Visual studio select File  New  WebSite By default present Visual Studio builds the applications without using IIS. These applications uses built-in web server .
  12. Just point on Tag Navigator ( At bottom of window allow to switch design and source view ) and Page Tabs. What you see in new Web Site A new website with the name you specified (or the default name) gets created. A folder App_Data is created which will contain data files such as xml and data base files . Default.aspx is already created which is the first page in the web application. Default.aspx.cs is ‘code-behind’ class for Default.aspx . You have design as well as source view for all the asp pages. <form id="form1" runat="server"> </form>
  13. Code that is required when the page loads up can be put here Note that there is no link up between the asp.net page and the code here. This is automatically achieved  inferred by the AutoEventWireUp attribute set to true .
  14. To add new Web Pages to your web site just right click on your project and select Add new Item from context menu.
  15. The single page model is similar to traditional ASP 2.0 and 3.0 models. In Code-behind Page model allows the code separation of page’s business logic from its presentation logic. The presentation logic is stored in “ .aspx ” page. Whereas logical piece is stored in a separate class file “ .aspx.cs ”. An ASP.NET Web page has constitute two files: File containing visual element tags like server controls tags and static text. File containing programming logic for the page, which includes event handlers and other code. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  16. In Code-behind Page model: An ASP.NET Web page has constitute two files: File containing visual element tags like server controls tags and static text. File containing programming logic for the page, which includes event handlers and other code. Advantages of Single file page model : For a small simple page all code in one file is simpler to handle. Slightly easier to deploy or transfer because you need to send only one file. Because there is no dependency between files, a single-file page is easier to rename. Advantages of Code-behind page model : A clean separation of design and code The design code is usually mark up code which is achieved through visual programming (drag drop). This code is generated automatically by visual studio. This approach keeps the code that programmer writes is kept separate from the code that is automatically generated. Page designers is not exposed to the code that programmers write. Same code can be reused for multiple pages. 06/15/11 10:25 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Next Generation Business Solutions Platform Strategy Review
  17. Trace handler is a handler that displays the current page trace information.
  18. Trace handler is a handler that displays the current page trace information.
  19. The nice thing about App_Code folder is that if you place in code files in this folder visual studio automatically compiles and make instantly available to your ASP.NET pages that are in some location. Every thing placed in App_Code folder compiles to a single assembly. If you want to develop classes that uses different languages (VB, C#) then you need to create different directories ( VB and CS ) in App_code folder and place files accordingly. ( \\App_Code\\VB or \\App_Code\\CS , etc., ). Also you need to make some settings in web.config file to generate different assemblies for different codes. Themes are new way to providing a common look and feel to your site across every page. In addition to App_GlobalResources folder there is also an App_LocalResources folder exists. The resources stored in App_GlobalResources will be page specific. Whereas the resources stored in App_LocalResources will be page specific. Resources are accessed programmatically as follow: myLabel.Text = Resources.Resource.Greeting ; Themes are simple text files where you can define the appearance of server controls that can be applied across site, or single page or a specific server control. You can also incorporate graphics and CSS
  20. This page interacting with database as well as using Session state.