SlideShare a Scribd company logo
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

What's hot (20)

PPTX
Feature and Future of ASP.NET
Md. Mahedee Hasan
 
PPT
Real World Rails Deployment
Alan Hecht
 
PPTX
Using the Kentico CMS API
Thomas Robbins
 
PPTX
Learn from my Mistakes - Building Better Solutions in SPFx
Thomas Daly
 
PDF
Kentico and MVC
Cheryl MacDonald
 
PPTX
ASP.NET 5
David Voyles
 
PPTX
Introduction to ASP.NET 5
mbaric
 
PPTX
ReactPHP + Symfony
David Bergunder
 
PPTX
introduction to js
Sireesh K
 
PPTX
Introduction to asp.net
Melick Baranasooriya
 
PPTX
Leveraging Open Source Library Guides: Integrating Koha and SubjectsPlus
Myka Kennedy Stephens
 
PPT
VFP & Ajax
Mike Feltman
 
PDF
PHP Web Development Frameworks & Advantages
AditMicrosys Australia
 
PDF
IBM Domino Modernizing apps with Angularjs
Dominopoint - Italian Lotus User Group
 
PPTX
Office script labs
Mark Roden
 
PPTX
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
PDF
Microsoft, Web Standards and OSS
Mahdi Taghizadeh
 
PPTX
Can you build a Intranet with Modern SharePoint
Knut Relbe-Moe [MVP, MCT]
 
PPTX
Single Page Application
Isuru Madusanka
 
PPTX
Single page application
Ismaeel Enjreny
 
Feature and Future of ASP.NET
Md. Mahedee Hasan
 
Real World Rails Deployment
Alan Hecht
 
Using the Kentico CMS API
Thomas Robbins
 
Learn from my Mistakes - Building Better Solutions in SPFx
Thomas Daly
 
Kentico and MVC
Cheryl MacDonald
 
ASP.NET 5
David Voyles
 
Introduction to ASP.NET 5
mbaric
 
ReactPHP + Symfony
David Bergunder
 
introduction to js
Sireesh K
 
Introduction to asp.net
Melick Baranasooriya
 
Leveraging Open Source Library Guides: Integrating Koha and SubjectsPlus
Myka Kennedy Stephens
 
VFP & Ajax
Mike Feltman
 
PHP Web Development Frameworks & Advantages
AditMicrosys Australia
 
IBM Domino Modernizing apps with Angularjs
Dominopoint - Italian Lotus User Group
 
Office script labs
Mark Roden
 
The future of web development write once, run everywhere with angular.js and ...
Mark Roden
 
Microsoft, Web Standards and OSS
Mahdi Taghizadeh
 
Can you build a Intranet with Modern SharePoint
Knut Relbe-Moe [MVP, MCT]
 
Single Page Application
Isuru Madusanka
 
Single page application
Ismaeel Enjreny
 

Viewers also liked (20)

PPTX
XML Fundamentals
Andres Felipe Rincon Rodriguez
 
PPTX
Unit 1
Disha Bhatia
 
PPTX
ADO .NET by Sonu Vishwakarma
Sonu Vishwakarma
 
PPT
Organizational behavior learning
Perinpanathan Rajkumar
 
PPT
Asp dot net long
Amelina Ahmeti
 
PDF
Computer fundamentals
nilesh67
 
PPT
Your First ASP_Net project part 1
Biswadip Goswami
 
PPTX
Parallelminds.asp.net with sp
parallelminder
 
PDF
Chapter 1 (asp.net over view)
let's go to study
 
PPTX
Review Materi ASP.NET
Dudy Ali
 
PPTX
ASP.NET - Introduction to Web Forms and MVC
Bilal Amjad
 
PPT
E sampark with c#.net
Abhijeet Singh
 
PPTX
ASP.NET Lecture 1
Julie Iskander
 
PDF
Advanced Asp.Net Concepts And Constructs
Manny Siddiqui MCS, MBA, PMP
 
PDF
Computer Notes
Ahisham Shah
 
PDF
Asp.Net 3.5 Part 2
asim78
 
PPT
Unit 1
swapnasalil
 
PPT
ASP
Ramasubbu .P
 
PDF
Computer Notes
EHSAN KHAN
 
Unit 1
Disha Bhatia
 
ADO .NET by Sonu Vishwakarma
Sonu Vishwakarma
 
Organizational behavior learning
Perinpanathan Rajkumar
 
Asp dot net long
Amelina Ahmeti
 
Computer fundamentals
nilesh67
 
Your First ASP_Net project part 1
Biswadip Goswami
 
Parallelminds.asp.net with sp
parallelminder
 
Chapter 1 (asp.net over view)
let's go to study
 
Review Materi ASP.NET
Dudy Ali
 
ASP.NET - Introduction to Web Forms and MVC
Bilal Amjad
 
E sampark with c#.net
Abhijeet Singh
 
ASP.NET Lecture 1
Julie Iskander
 
Advanced Asp.Net Concepts And Constructs
Manny Siddiqui MCS, MBA, PMP
 
Computer Notes
Ahisham Shah
 
Asp.Net 3.5 Part 2
asim78
 
Unit 1
swapnasalil
 
Computer Notes
EHSAN KHAN
 
Ad

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

PPT
Asp.net architecture
Iblesoft
 
PPTX
Asp.net
Anchit Rajawat
 
ZIP
ASP.Net Presentation Part1
Neeraj Mathur
 
PPTX
ASP.NET Presentation
dimuthu22
 
DOCX
As pnet
Abhishek Kesharwani
 
PDF
Asp.netrole
mani bhushan
 
PPTX
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
PPTX
Asp.net
vijilakshmi51
 
PPS
01 asp.net session01
Mani Chaubey
 
PPT
Introduction to ASP.net. It provides basic introduction
ssuserbf6ebe
 
PPT
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
AvijitChaudhuri3
 
PPT
introaspnet.ppt
asmachehbi
 
PPT
introaspnet.ppt
IbrahimBurhan6
 
PPTX
Lecture slides_Introduction to ASP.NET presentation
ssuserbf6ebe
 
PPTX
Introduction to asp
Madhuri Kavade
 
PPSX
01 asp.net session01
Vivek Singh Chandel
 
PPTX
ASP.pptx
GlenardDSarmiento
 
PPTX
Developing an aspnet web application
Rahul Bansal
 
PDF
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
 
Asp.net architecture
Iblesoft
 
ASP.Net Presentation Part1
Neeraj Mathur
 
ASP.NET Presentation
dimuthu22
 
Asp.netrole
mani bhushan
 
Asp.net presentation by gajanand bohra
Gajanand Bohra
 
Asp.net
vijilakshmi51
 
01 asp.net session01
Mani Chaubey
 
Introduction to ASP.net. It provides basic introduction
ssuserbf6ebe
 
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
AvijitChaudhuri3
 
introaspnet.ppt
asmachehbi
 
introaspnet.ppt
IbrahimBurhan6
 
Lecture slides_Introduction to ASP.NET presentation
ssuserbf6ebe
 
Introduction to asp
Madhuri Kavade
 
01 asp.net session01
Vivek Singh Chandel
 
Developing an aspnet web application
Rahul Bansal
 
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
 
Ad

More from asim78 (9)

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

Recently uploaded (20)

PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
Digital Circuits, important subject in CS
contactparinay1
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 

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!