Building Effective Web
Applications with ASP .Net 3.5




                 ASIM SHAHZAD
Target Audience
• Prior web development experience
• Best geared towards programmers,
  software engineers, web designers,
  technical leads, task leads and architects.
• Class will be taught using C# which has a
  similar syntax to Java
Course Objectives
• Become familiar with new features in
  ASP .Net 3.5
• Build database driven apps using
  LINQ
• Leverage ASP .Net AJAX on both the
  client and server side
• Learn about state management and
  caching
• Secure your ASP .Net websites
Course Roadmap
• Week 1 – Getting Started
• Week 2 – Data Access, ADO .Net and
  LINQ
• Week 3 – AJAX
• Week 4 – State Management and Caching
• Week 5 – Security
• Week 6 – End to End app and SP1
Course Text and Code Samples
     ASP .Net 3.5 Unleashed ( author
     Stephen Walther - Sam’s
     Publishing)
      Code samples available for download at
      www.superexpert.com
    o CD that accompanies the book has both
      C# and VB .Net versions of the code
    o Chapter 1 is available as a free
      download from www.bookpool.com
    o Demo how to run book code
Today’s Agenda – Getting
         Started
•   Tools We Will Use
•   ASP .Net 3.5 Overview
•   Project Setup/Configuration
•   WebForms Overview
•   Server Controls
•   User Controls
•   Master Pages
•   Debugging and Tracing
•   New Features in ASP .Net 3.5
ASP .Net 3.5 Overview
• ASP .Net 3.5 is a technology that allows
  programmers to create dynamic web
  sites.
• ASP .Net can be used to create small
  personal web sites or Enterprise
  applications
• ASP .Net is part of the .Net Framework
• .Net Framework consists of the
  Framework Class Library and the
  Common Language Runtime
Tools We Will Use
• VS 2008 Professional or
  Visual Web Developer 2008
• SQL Server Express Edition or higher
  (2005 or 2008)
  Express Edition or higher
• Links to download these products can
  be found on http://msdn.microsoft.com
• VS2008 available from MS, MSDN or
  Team System subscription or contact Bill
  Scherer Jr (SRA Enterprise Solutions
Working with .Net Projects –
             VS2003
• VS2003: Single solution file. Project precompiled into a single
  DLL, ASPX markup pages deployed.
• Pros:
   – Compiles/debugs like other projects (WinForms, etc.)
   – Slightly more efficient.
   – Single file deployment + referenced DLLs + HTML.
• Cons:
   – Not easy to use in team environments.
   – Often leads to monolithic DLLs for large sites.
Working with Projects - VS2005

   VS2005: Website Compilation Model – All files
   compiled on demand.
   Pros:
      Works better in teams.
      Easy to deploy/test incremental updates.
   Cons:
      Can be difficult to upgrade from VS2003.
      First hit incurs compilation overhead.
      May mean more files to deploy.
Working with Projects - VS2008
 • VS2008: Both models supported out
   of the box.                      File -> New -> Web Site
                                     File -> New -> Web Site
     File -> New -> Project
     -> ASP.NET Web App




                              New style
                               New style

        Old style                          New style
Demo
• Create a new website using ASP .Net 3.5
  and VS2008
Web Forms Key Points
• ASPX pages handled by a handler that
  facilitate the page lifecycle and events (such
  as Page_Load, PreRender, and control
  events).
• Uses ViewState to encoded state-specific
  information otherwise lost in the stateless
  nature of HTTP.
• Extensive controls library to abstract
  functionality. Buttons, textboxes, etc.
• Extensible.
• Web Forms have a .aspx file extension.
Server Controls
• Typically compiled into a DLL.
• Represents a small piece of
  functionality, like a textbox or button.
• Responsible for handling any special
  rendering requirements, raising
  events, etc.




   Properties       Event Handlers
User Controls
• Collections of HTML and/or Server
  Controls for a broader purpose – such as
  a login dialog box.
• Typically part of a project and compiled
  with the project.
• Can expose properties.
HTML Controls
• Take any HTML tag and add a
  runat=“server” tag.
• This converts the HTML tag into a server-
  side ASP .Net control
• Allow us to program server side events
Master Pages
• Same look and feel to many pages; code
  in one spot.
ViewState (p29)
• The HTTP Protocol is a stateless
  protocol
• Web Pages use a
  Request/Response model
• ViewState allows us to save the state
  of a server control across multiple
  page requests
• Comes with performance overhead
• Enabled by default for each control
Demo
• Add page level tracing to existing
  page
• Examine page lifecycle
• Examine Viewstate cost
• Write to trace log
• We can determine if the page is
  posting back by using the
  Page.IsPostback property
• We can turn tracing and debugging
Dynamic Compilation (p35)
• When we create an ASP .Net page
  we are creating source code for a
  .Net class
• Pages are compiled and stored in a
  temp folder on the web server
• Unlike classic ASP the page will not
  be recompiled again, unless we
  disable dynamic compilation
• This allows support for thousands of
Code Behind vs Single File
            Pages
• In a single file ASP .Net page, a single file
  contains both the page code and page
  controls
• A code behind has the page code in a
  separate file
• Which should you use? (p45)
New Features of VS2008
•   Javascript Intellisense/Debugging support
•   Nested Master Pages
•   Enhanced CSS Management
•   Multi-targeting support.
•   New data controls.
•   MUCH improved designer.
Other ASP .Net Resources
• MSDN Web site
• Sra.skillport.com
• MSDN Virtual Labs
• MS Tech-ED Developer
  presentations on my SRA portal site
• VS 2008 Training Kit
• http://www.asp.net/downloads/
• http://www.codeplex.com/aspnet
Questions ?
• Feel free to contact me at
asimshahzad78@yahoo.com

• Thank you!

More Related Content

PPTX
Product Camp Silicon Valley 2018 - PM Technical Skills
PPTX
Migration from ASP.NET MVC to ASP.NET Core
PPTX
Drop acid
PPTX
Building Responsive Intranet using Sharepoint Framework solutions - Asish Pad...
PPTX
Deep Dive building solutions on the SharePoint Framework - SPS Brussels 2016
PPTX
The WordPress Way: Accessibility and Backwards Compatibility
PPTX
Node.js at Nutonian
PPTX
Using MVC with Kentico 8
Product Camp Silicon Valley 2018 - PM Technical Skills
Migration from ASP.NET MVC to ASP.NET Core
Drop acid
Building Responsive Intranet using Sharepoint Framework solutions - Asish Pad...
Deep Dive building solutions on the SharePoint Framework - SPS Brussels 2016
The WordPress Way: Accessibility and Backwards Compatibility
Node.js at Nutonian
Using MVC with Kentico 8

What's hot (20)

PPTX
Feature and Future of ASP.NET
PPT
Real World Rails Deployment
PPTX
Using the Kentico CMS API
PPTX
Learn from my Mistakes - Building Better Solutions in SPFx
PDF
Kentico and MVC
PPTX
ASP.NET 5
PPTX
Introduction to ASP.NET 5
PPTX
ReactPHP + Symfony
PPTX
introduction to js
PPTX
Introduction to asp.net
PPTX
Leveraging Open Source Library Guides: Integrating Koha and SubjectsPlus
PPT
VFP & Ajax
PDF
PHP Web Development Frameworks & Advantages
PDF
IBM Domino Modernizing apps with Angularjs
PPTX
Office script labs
PPTX
The future of web development write once, run everywhere with angular.js and ...
PDF
Microsoft, Web Standards and OSS
PPTX
Can you build a Intranet with Modern SharePoint
PPTX
Single Page Application
PPTX
Single page application
Feature and Future of ASP.NET
Real World Rails Deployment
Using the Kentico CMS API
Learn from my Mistakes - Building Better Solutions in SPFx
Kentico and MVC
ASP.NET 5
Introduction to ASP.NET 5
ReactPHP + Symfony
introduction to js
Introduction to asp.net
Leveraging Open Source Library Guides: Integrating Koha and SubjectsPlus
VFP & Ajax
PHP Web Development Frameworks & Advantages
IBM Domino Modernizing apps with Angularjs
Office script labs
The future of web development write once, run everywhere with angular.js and ...
Microsoft, Web Standards and OSS
Can you build a Intranet with Modern SharePoint
Single Page Application
Single page application
Ad

Viewers also liked (20)

PPTX
PPTX
Unit 1
PPTX
ADO .NET by Sonu Vishwakarma
PPT
Organizational behavior learning
PPT
Asp dot net long
PDF
Computer fundamentals
PPT
Your First ASP_Net project part 1
PPTX
Parallelminds.asp.net with sp
PDF
Chapter 1 (asp.net over view)
PPTX
Review Materi ASP.NET
PPTX
ASP.NET - Introduction to Web Forms and MVC
PPT
E sampark with c#.net
PPTX
ASP.NET Lecture 1
PDF
Advanced Asp.Net Concepts And Constructs
PDF
Computer Notes
PDF
Asp.Net 3.5 Part 2
PPT
Unit 1
PPT
PDF
Computer Notes
Unit 1
ADO .NET by Sonu Vishwakarma
Organizational behavior learning
Asp dot net long
Computer fundamentals
Your First ASP_Net project part 1
Parallelminds.asp.net with sp
Chapter 1 (asp.net over view)
Review Materi ASP.NET
ASP.NET - Introduction to Web Forms and MVC
E sampark with c#.net
ASP.NET Lecture 1
Advanced Asp.Net Concepts And Constructs
Computer Notes
Asp.Net 3.5 Part 2
Unit 1
Computer Notes
Ad

Similar to Asp.Net 3 5 Part 1 (20)

PPT
PPT
PPTX
Lecture slides_Introduction to ASP.NET presentation
PPTX
Introduction to ASP.NET
PPTX
Introduction to asp
PPT
introaspnet.ppt
PPT
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
PPT
Introduction to ASP.net. It provides basic introduction
PPT
introaspnet.ppt
PPT
This is the introduction to Asp.Net Using C# Introduction Variables State Man...
PPT
INTRODUCTION TO ASP.NET COMPLETE MATERIALCOURSE
PPTX
ASP.NET Presentation
PPT
introasp_net-6563550.ppt
PPT
introasp_net-7364068.ppt
DOC
Rouky Martin Resume
PPT
introaspnet-5856912.ppt
PPT
introaspnet-3030384.ppt
PPTX
PPTX
PPTX
Untying the Knots of Web Dev with Internet Explorer
Lecture slides_Introduction to ASP.NET presentation
Introduction to ASP.NET
Introduction to asp
introaspnet.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
Introduction to ASP.net. It provides basic introduction
introaspnet.ppt
This is the introduction to Asp.Net Using C# Introduction Variables State Man...
INTRODUCTION TO ASP.NET COMPLETE MATERIALCOURSE
ASP.NET Presentation
introasp_net-6563550.ppt
introasp_net-7364068.ppt
Rouky Martin Resume
introaspnet-5856912.ppt
introaspnet-3030384.ppt
Untying the Knots of Web Dev with Internet Explorer

More from asim78 (9)

PDF
Web Introduction
PDF
Ado Fundamentals
PPT
Project Manangement Introduction
PPT
Software Project Management
PPT
Project Quality Management
PPT
Procurement
PPT
PMP Flash Card
PPT
Hr Management
PDF
6 Steps For Pmp
Web Introduction
Ado Fundamentals
Project Manangement Introduction
Software Project Management
Project Quality Management
Procurement
PMP Flash Card
Hr Management
6 Steps For Pmp

Recently uploaded (20)

PPTX
Configure Apache Mutual Authentication
PPTX
Training Program for knowledge in solar cell and solar industry
PPTX
Module 1 Introduction to Web Programming .pptx
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
Auditboard EB SOX Playbook 2023 edition.
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PPTX
Internet of Everything -Basic concepts details
DOCX
Basics of Cloud Computing - Cloud Ecosystem
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PPTX
Microsoft User Copilot Training Slide Deck
Configure Apache Mutual Authentication
Training Program for knowledge in solar cell and solar industry
Module 1 Introduction to Web Programming .pptx
Comparative analysis of machine learning models for fake news detection in so...
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Rapid Prototyping: A lecture on prototyping techniques for interface design
“A New Era of 3D Sensing: Transforming Industries and Creating Opportunities,...
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
Auditboard EB SOX Playbook 2023 edition.
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Internet of Everything -Basic concepts details
Basics of Cloud Computing - Cloud Ecosystem
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
Microsoft User Copilot Training Slide Deck

Asp.Net 3 5 Part 1

  • 1. Building Effective Web Applications with ASP .Net 3.5 ASIM SHAHZAD
  • 2. Target Audience • Prior web development experience • Best geared towards programmers, software engineers, web designers, technical leads, task leads and architects. • Class will be taught using C# which has a similar syntax to Java
  • 3. Course Objectives • Become familiar with new features in ASP .Net 3.5 • Build database driven apps using LINQ • Leverage ASP .Net AJAX on both the client and server side • Learn about state management and caching • Secure your ASP .Net websites
  • 4. Course Roadmap • Week 1 – Getting Started • Week 2 – Data Access, ADO .Net and LINQ • Week 3 – AJAX • Week 4 – State Management and Caching • Week 5 – Security • Week 6 – End to End app and SP1
  • 5. Course Text and Code Samples ASP .Net 3.5 Unleashed ( author Stephen Walther - Sam’s Publishing) Code samples available for download at www.superexpert.com o CD that accompanies the book has both C# and VB .Net versions of the code o Chapter 1 is available as a free download from www.bookpool.com o Demo how to run book code
  • 6. Today’s Agenda – Getting Started • Tools We Will Use • ASP .Net 3.5 Overview • Project Setup/Configuration • WebForms Overview • Server Controls • User Controls • Master Pages • Debugging and Tracing • New Features in ASP .Net 3.5
  • 7. ASP .Net 3.5 Overview • ASP .Net 3.5 is a technology that allows programmers to create dynamic web sites. • ASP .Net can be used to create small personal web sites or Enterprise applications • ASP .Net is part of the .Net Framework • .Net Framework consists of the Framework Class Library and the Common Language Runtime
  • 8. Tools We Will Use • VS 2008 Professional or Visual Web Developer 2008 • SQL Server Express Edition or higher (2005 or 2008) Express Edition or higher • Links to download these products can be found on http://msdn.microsoft.com • VS2008 available from MS, MSDN or Team System subscription or contact Bill Scherer Jr (SRA Enterprise Solutions
  • 9. Working with .Net Projects – VS2003 • VS2003: Single solution file. Project precompiled into a single DLL, ASPX markup pages deployed. • Pros: – Compiles/debugs like other projects (WinForms, etc.) – Slightly more efficient. – Single file deployment + referenced DLLs + HTML. • Cons: – Not easy to use in team environments. – Often leads to monolithic DLLs for large sites.
  • 10. Working with Projects - VS2005 VS2005: Website Compilation Model – All files compiled on demand. Pros: Works better in teams. Easy to deploy/test incremental updates. Cons: Can be difficult to upgrade from VS2003. First hit incurs compilation overhead. May mean more files to deploy.
  • 11. Working with Projects - VS2008 • VS2008: Both models supported out of the box. File -> New -> Web Site File -> New -> Web Site File -> New -> Project -> ASP.NET Web App New style New style Old style New style
  • 12. Demo • Create a new website using ASP .Net 3.5 and VS2008
  • 13. Web Forms Key Points • ASPX pages handled by a handler that facilitate the page lifecycle and events (such as Page_Load, PreRender, and control events). • Uses ViewState to encoded state-specific information otherwise lost in the stateless nature of HTTP. • Extensive controls library to abstract functionality. Buttons, textboxes, etc. • Extensible. • Web Forms have a .aspx file extension.
  • 14. Server Controls • Typically compiled into a DLL. • Represents a small piece of functionality, like a textbox or button. • Responsible for handling any special rendering requirements, raising events, etc. Properties Event Handlers
  • 15. User Controls • Collections of HTML and/or Server Controls for a broader purpose – such as a login dialog box. • Typically part of a project and compiled with the project. • Can expose properties.
  • 16. HTML Controls • Take any HTML tag and add a runat=“server” tag. • This converts the HTML tag into a server- side ASP .Net control • Allow us to program server side events
  • 17. Master Pages • Same look and feel to many pages; code in one spot.
  • 18. ViewState (p29) • The HTTP Protocol is a stateless protocol • Web Pages use a Request/Response model • ViewState allows us to save the state of a server control across multiple page requests • Comes with performance overhead • Enabled by default for each control
  • 19. Demo • Add page level tracing to existing page • Examine page lifecycle • Examine Viewstate cost • Write to trace log • We can determine if the page is posting back by using the Page.IsPostback property • We can turn tracing and debugging
  • 20. Dynamic Compilation (p35) • When we create an ASP .Net page we are creating source code for a .Net class • Pages are compiled and stored in a temp folder on the web server • Unlike classic ASP the page will not be recompiled again, unless we disable dynamic compilation • This allows support for thousands of
  • 21. Code Behind vs Single File Pages • In a single file ASP .Net page, a single file contains both the page code and page controls • A code behind has the page code in a separate file • Which should you use? (p45)
  • 22. New Features of VS2008 • Javascript Intellisense/Debugging support • Nested Master Pages • Enhanced CSS Management • Multi-targeting support. • New data controls. • MUCH improved designer.
  • 23. Other ASP .Net Resources • MSDN Web site • Sra.skillport.com • MSDN Virtual Labs • MS Tech-ED Developer presentations on my SRA portal site • VS 2008 Training Kit • http://www.asp.net/downloads/ • http://www.codeplex.com/aspnet
  • 24. Questions ? • Feel free to contact me at [email protected] • Thank you!