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

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

What's hot (20)

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

Viewers also liked

XML Fundamentals
XML FundamentalsXML Fundamentals
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaSonu Vishwakarma
 
Organizational behavior learning
Organizational behavior  learningOrganizational behavior  learning
Organizational behavior learning
Perinpanathan Rajkumar
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentalsnilesh67
 
Your First ASP_Net project part 1
Your First ASP_Net project part 1Your First ASP_Net project part 1
Your First ASP_Net project part 1
Biswadip Goswami
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
parallelminder
 
Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)
let's go to study
 
Review Materi ASP.NET
Review Materi ASP.NETReview Materi ASP.NET
Review Materi ASP.NET
Dudy Ali
 
ASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVCASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVC
Bilal Amjad
 
E sampark with c#.net
E sampark with c#.netE sampark with c#.net
E sampark with c#.net
Abhijeet Singh
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
Julie Iskander
 
Advanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And ConstructsAdvanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And Constructs
Manny Siddiqui MCS, MBA, PMP
 
Computer Notes
Computer Notes Computer Notes
Computer Notes
Ahisham Shah
 
Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2
asim78
 
Unit 1
Unit 1Unit 1
Unit 1
swapnasalil
 
ASP
ASPASP
Computer Notes
Computer NotesComputer Notes
Computer Notes
EHSAN KHAN
 

Viewers also liked (20)

XML Fundamentals
XML FundamentalsXML Fundamentals
XML Fundamentals
 
Unit 1
Unit 1Unit 1
Unit 1
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu Vishwakarma
 
Organizational behavior learning
Organizational behavior  learningOrganizational behavior  learning
Organizational behavior learning
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Your First ASP_Net project part 1
Your First ASP_Net project part 1Your First ASP_Net project part 1
Your First ASP_Net project part 1
 
Miao
MiaoMiao
Miao
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)
 
Review Materi ASP.NET
Review Materi ASP.NETReview Materi ASP.NET
Review Materi ASP.NET
 
ASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVCASP.NET - Introduction to Web Forms and MVC
ASP.NET - Introduction to Web Forms and MVC
 
E sampark with c#.net
E sampark with c#.netE sampark with c#.net
E sampark with c#.net
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
Advanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And ConstructsAdvanced Asp.Net Concepts And Constructs
Advanced Asp.Net Concepts And Constructs
 
Computer Notes
Computer Notes Computer Notes
Computer Notes
 
Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2Asp.Net 3.5 Part 2
Asp.Net 3.5 Part 2
 
Unit 1
Unit 1Unit 1
Unit 1
 
ASP
ASPASP
ASP
 
Computer Notes
Computer NotesComputer Notes
Computer Notes
 

Similar to Asp.Net 3 5 Part 1

Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
Rajkumarsoy
 
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.pptintroaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
AvijitChaudhuri3
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
asmachehbi
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
IbrahimBurhan6
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
dimuthu22
 
introasp_net-7364068.ppt
introasp_net-7364068.pptintroasp_net-7364068.ppt
introasp_net-7364068.pptIQM123
 
introasp_net-6563550.ppt
introasp_net-6563550.pptintroasp_net-6563550.ppt
introasp_net-6563550.pptIQM123
 
Rouky Martin Resume
Rouky Martin ResumeRouky Martin Resume
Rouky Martin Resumeroukym
 
introaspnet-5856912.ppt
introaspnet-5856912.pptintroaspnet-5856912.ppt
introaspnet-5856912.pptIQM123
 
introaspnet-3030384.ppt
introaspnet-3030384.pptintroaspnet-3030384.ppt
introaspnet-3030384.pptIQM123
 
ASP.pptx
ASP.pptxASP.pptx
Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer
Sarah Dutkiewicz
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
Best Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsBest Practices for Building WordPress Applications
Best Practices for Building WordPress Applications
Taylor Lovett
 
UKLUG 2012 - XPages, Beyond the basics
UKLUG 2012 - XPages, Beyond the basicsUKLUG 2012 - XPages, Beyond the basics
UKLUG 2012 - XPages, Beyond the basicsUlrich Krause
 

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

Introaspnet
IntroaspnetIntroaspnet
Introaspnet
 
Aspintro
AspintroAspintro
Aspintro
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.pptintroaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
introaspnetkjadbfksdjkfaskjdbfkajsbfkjfjkswa.ppt
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
 
introaspnet.ppt
introaspnet.pptintroaspnet.ppt
introaspnet.ppt
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
introasp_net-7364068.ppt
introasp_net-7364068.pptintroasp_net-7364068.ppt
introasp_net-7364068.ppt
 
introasp_net-6563550.ppt
introasp_net-6563550.pptintroasp_net-6563550.ppt
introasp_net-6563550.ppt
 
Rouky Martin Resume
Rouky Martin ResumeRouky Martin Resume
Rouky Martin Resume
 
introaspnet-5856912.ppt
introaspnet-5856912.pptintroaspnet-5856912.ppt
introaspnet-5856912.ppt
 
introaspnet-3030384.ppt
introaspnet-3030384.pptintroaspnet-3030384.ppt
introaspnet-3030384.ppt
 
ASP.pptx
ASP.pptxASP.pptx
ASP.pptx
 
ASP.pptx
ASP.pptxASP.pptx
ASP.pptx
 
Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer Untying the Knots of Web Dev with Internet Explorer
Untying the Knots of Web Dev with Internet Explorer
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Best Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsBest Practices for Building WordPress Applications
Best Practices for Building WordPress Applications
 
Asp.net
Asp.netAsp.net
Asp.net
 
UKLUG 2012 - XPages, Beyond the basics
UKLUG 2012 - XPages, Beyond the basicsUKLUG 2012 - XPages, Beyond the basics
UKLUG 2012 - XPages, Beyond the basics
 

More from asim78

Web Introduction
Web IntroductionWeb Introduction
Web Introduction
asim78
 
Ado Fundamentals
Ado FundamentalsAdo Fundamentals
Ado Fundamentals
asim78
 
Project Manangement Introduction
Project Manangement IntroductionProject Manangement Introduction
Project Manangement Introduction
asim78
 
Software Project Management
Software Project ManagementSoftware Project Management
Software Project Management
asim78
 
Project Quality Management
Project Quality ManagementProject Quality Management
Project Quality Management
asim78
 
Procurement
ProcurementProcurement
Procurement
asim78
 
PMP Flash Card
PMP Flash CardPMP Flash Card
PMP Flash Card
asim78
 
Hr Management
Hr ManagementHr Management
Hr Management
asim78
 
6 Steps For Pmp
6 Steps For Pmp6 Steps For Pmp
6 Steps For Pmp
asim78
 

More from asim78 (9)

Web Introduction
Web IntroductionWeb Introduction
Web Introduction
 
Ado Fundamentals
Ado FundamentalsAdo Fundamentals
Ado Fundamentals
 
Project Manangement Introduction
Project Manangement IntroductionProject Manangement Introduction
Project Manangement Introduction
 
Software Project Management
Software Project ManagementSoftware Project Management
Software Project Management
 
Project Quality Management
Project Quality ManagementProject Quality Management
Project Quality Management
 
Procurement
ProcurementProcurement
Procurement
 
PMP Flash Card
PMP Flash CardPMP Flash Card
PMP Flash Card
 
Hr Management
Hr ManagementHr Management
Hr Management
 
6 Steps For Pmp
6 Steps For Pmp6 Steps For Pmp
6 Steps For Pmp
 

Recently uploaded

Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 

Recently uploaded (20)

Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 

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 asimshahzad78@yahoo.com • Thank you!