SlideShare une entreprise Scribd logo
1  sur  77
Developing Windows and Web Applications using Visual Studio.NET Peter Gfader Senior Software Architect
Peter Gfader SSA @ SSW Loves C# and .NET (Java not anymore) Specializes in  Windows Forms ASP.NET TFS testing Automated tests Silverlight
Homework? ,[object Object]
Show users where they are,[object Object]
Session 6: ASP. NET ,[object Object]
 Overview of ASP.NET
 An ASP.NET Page
 Server Controls
 User Controls
 Validation
 Master Pages
 Themes & skinsLAB ,[object Object]
 Menu, Navigation & Sitemaps
 Some cool new ASP.NET 2 Server Controls,[object Object]
http://sharepoint.ssw.com.au/Training/UTSNET/ Part 2: .NET Webforms Overview of .NET WebformsTODAY Data in Webforms Usability Rich Web Forms and  Other ASP.NET Features  Web Security  Advanced Topics & Future Technology (Silverlight) The 10 SessionsNext 5 – To Do – Webforms
The web
HyperTextMarkupLanguage Describes a web page http://en.wikipedia.org/wiki/HTML HTML <html>   <head>     <title>Hello HTML</title>   </head>   <body>     <p>Hello World!</p>   </body> </html>
Hypertext Transfer Protocol Request – Response http://en.wikipedia.org/wiki/Http HTTP GET /index.html HTTP/1.1 Host: www.example.com  HTTP/1.1 200 OK  Date: Mon, 23 May 2005 22:38:34 GMT  Server: Apache/1.3.3.7 (Unix)  (Red-Hat/Linux)  Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT  Content-Length: 438  Content-Type: text/html; charset=UTF-8
Your Computer Hosting Computer Internet The Internet Server Client How a web page is shown
Request / Response Request www.ssw.com.au The Internet Response Server HTML Client
IL = Intermediate        Language CLR = Runtime .NET Overview
CLR Common Language Runtime = Virtual machine
What Is ASP.NET? ASP.NET provides a complete environment for building, deploying, and running .NET Web applications. Developer Productivity Simplified page development model Target any Web client (PC or mobile device)  Modular, well-factored, extensible architecture Superior debugging and tracing support Enhanced Performance, Scalability, and Reliability Compiled, not interpreted Rich caching support Web farm scalable session state Automatically detects and recovers from errors Simple Deployment and Configuration No need to bring down Web server Deploy and upgrade running applications with XCOPY XML configuration files
User requests an application resource from the Web server. IIS forwards the call to ASP.NET’s process Application manager calls the Application domain & Processes the page. ASP.NET Page Request
Evolution The whole .NET FX http://shrinkster.com/1515 .NET Framework
Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) Instantiate, process and render ASP.NET Compilation
2 Types of Projects – 1 – Web Site Web Site Don’t use this, here for compatibility only File  > New > Web Site Each page is dynamically loaded into memory Slow on first load after deployment No need to recompile for code change
2 Types of Projects – 2 – Web Application Web Application - Recommended File  > New > Projects, then Select Web Application Compiles all pages into one DLL Faster on first load after deployment Must recompile whole site for code change Not available in Default VS 2005, requires SP2
ASP.NETCompilation Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) Instantiate, process and render Web Site
ASP.NETCompilation Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) All pre compiled! Web Application
The Page
ASP.NET –Page/Web Form An ASP.NET Web page consists of two parts:  Visual elements, which include markup, server controls, and static text. Programming logic for the page, which includes event handlers and other code.
Things to Notice ASP.NET – Page/Web Form
Things to Notice Page Directive ASP.NET – Page/Web Form
Things to Notice Page Directive Server side code ASP.NET – Page/Web Form
Things to Notice Page Directive Server side code Form ASP.NET – Page/Web Form
Things to Notice Page Directive Server side code Form Normal HTML Structure ASP.NET – Page/Web Form
Things to Notice Page Directive Server side code Form Normal HTML Structure Server Controls ASP.NET – Page/Web Form
ASP.NET – Page Code Model ASP.NET provides two models for managing the visual elements and code: The Single-File Page Model 	<%@ Page Language="VB“> 	<script runat=“server”> … </script> The Code-Behind Page Model  	<%@ Page	Language="VB“ CodeFile="SamplePage.aspx.vb“ Inherits="SamplePage“ AutoEventWire="false" %>
A Page's Life
 Page request Start  Page Initialization Load Validation PostbackEvent handling Rendering Unload http://msdn.microsoft.com/en-us/library/ms178472.aspx ASP.NET – Page Life Cycle Stages (SILVER-U)
ASP.NET – Page Life Cycle Stages (SILVER-U) 1) Page request Occurs before the page life cycle begins.  When the page is requested by a user ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page), or if a cached version of the page can be sent in response without running the page.
ASP.NET – Page Life Cycle Stages (SILVER-U) 2) Start  Page properties set Request and  Response Determines whether the request is a postback or a new request and sets the IsPostBack property.  Sets the page's UICulture property
ASP.NET – Page Life Cycle Stages (SILVER-U) 3) Page Initialization Controls on the page are available Each control's UniqueID property is set.  Themes are applied to the page.  If the current request is a postback, the postback data has not yet been loaded and control property values have not been restored to the values from view state.
ASP.NET – Page Life Cycle Stages (SILVER-U) 4) Page Load If the current request is a postback, control properties are loaded with information recovered from view state and control state.
ASP.NET – Page Life Cycle Stages (SILVER-U) 5) Page Validation The Validate method of all validator controls is called Sets the IsValid property of  Individual validator controls The page
ASP.NET – Page Life Cycle Stages (SILVER-U) 6) Postback Event Handling If the request is a postback,  Event handlers are called
ASP.NET – Page Life Cycle Stages (SILVER-U) 7) PageRendering Before rendering, view state is saved for the page and all controls.  During the rendering phase, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream of the page's Response property.
ASP.NET – Page Life Cycle Stages (SILVER-U) 8) Page Unload Unload is called after the page has been: Fully rendered,  Sent to the client, and  Is ready to be discarded.  At this point, page properties such as Response and Request are unloaded and any cleanup is performed.
 Page request Start  Page Initialization Load Validation PostbackEvent handling Rendering Unload http://msdn.microsoft.com/en-us/library/ms178472.aspx ASP.NET – Page Life Cycle Stages (SILVER-U)
PreInit Init InitComplete PreLoad Load Control events LoadComplete PreRender SaveStateComplete Render  Unload  ASP.NET – Page Life Cycle Events
Postback & ViewState
ASP.NET Postbacks A Page Postback is: Where the client communicates back to the server,  Through the page that was originally served.  The post back is a submission of the Form element.
ASP.NET Viewstate Page ViewState Allows the state of objects (serializable) to be stored in a hidden field on the page.   ViewState is transported to the client and back to the server,  Is not stored on the server or any other external source.   ViewState is used to retain the state of server-side objects between postbacks.  So program can see if values have changed
Server states
ASP.NET States Session State – allows the state of objects (serializable) to be stored for a single session (lifetime of the user’s browser or specific timeout) Application State – allows the state of objects (serializable) to be stored for the application across different sessions.
Server controls
ASP.NET – Server Controls Server controls are tags that are understood by the server.  Syntax:  <asp:control_name id="some_id" runat="server" />  Example: <asp:Button 		id="button1"  		Text="Click me!"  runat="server"  OnClick="submit" />
Demo How to create a web application How to create a web form Designer Features Different Page Code models Postbacks Viewstate, Session State, Application State
User controls
ASP.NET User Controls A group of server controls that are created by the user. Encapsulates certain functionality Can be used on multiple pages E.g 	Address User control (in your lab) 		Contact User Control
ASP.NET Configuration
ASP.NET Configuration Web.Config Similar to app.config in windows Application-wide configuration Provide application settings In XML, so it’s easy to change
Who is the Master?
ASP.NET 2: Master Pages Master pages new concept in ASP.NET 2.0 Allows site developers to build master templates for their site's look and feel  Put common code shared by all the pages on the master page A page that references a Master Page is called a Content Page.
ASP.NET 2: Master Pages
How to define the Master page At the page level (in the page) <%@ Page Language="C#“ MasterPageFile="MySite.Master"    %>  At the application level (in web.config) <pages masterPageFile="MySite.Master" />
Validation
ASP.NET: Validation A Validation server control is used to validate the data of an input control. If the data does not pass validation, it will display an error message to the user.
Important Properties: ControlToValidate:The ID of the control that this validator validates.  Display: Has three possible values: Dynamic space the control uses isn’t reserved for the control Static 	space control uses is always reserved None 	control is invisible EnableClientScript:  Validation occurs on the Client’s Browser (default).  Text: Displayed when validation fails; often used to put an asterisk or an icon next to the error or for displaying the error message in a validation summary.  ASP.NET: Validation
Themes & Skins
ASP.NET 2: Themes & Skins What is a theme? A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in a Web application, across an entire Web application, or across all Web applications on a server. A theme contains: skins,  cascading style sheets (CSS), images,  and other resources
ASP.NET 2: Themes & Skins What is a skin file? A skin file has the file name extension .skin Belongs to a certain theme Contains property settings for individual controls Contains settings for server controls only
ASP.NET 2: Themes & Skins For Example: <asp:button ID=“btnNew” With css (before skin files were around): <asp:button ID=“btnNew” runat=“server” cssclass=“blueBlackButton”/> .blueBlackButton { Background:lightblue; Color:Black; }
ASP.NET 2: Themes & Skins But with Skins, you let the skin do the design work. In the page: <asp:button ID=“btnNew” runat="server" /> In the Skin file: <asp:buttonrunat="server"  BackColor="lightblue"  ForeColor="black" />
ASP.NET 2: Themes & Skins So, when do we use css files? When you need to style non-server controls, because skin files are only for asp.net controls.
Theme File Structure MyWebSite > App_Themes 		> BlueTheme 			> Controls.skin 			> BlueTheme.css  		> PinkTheme 			> Controls.skin 			> PinkTheme.css

Contenu connexe

Tendances

ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentationdimuthu22
 
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 MVCBilal Amjad
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraGajanand Bohra
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0Buu Nguyen
 
Concepts of Asp.Net
Concepts of Asp.NetConcepts of Asp.Net
Concepts of Asp.Netvidyamittal
 
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 FormsSAMIR BHOGAYTA
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentalsGopal Ji Singh
 
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
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Ido Flatow
 
Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netPankaj Kushwaha
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netSHADAB ALI
 
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl....net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...Nancy Thomas
 

Tendances (20)

Asp.net
 Asp.net Asp.net
Asp.net
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
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
 
Asp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohraAsp.net presentation by gajanand bohra
Asp.net presentation by gajanand bohra
 
New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Concepts of Asp.Net
Concepts of Asp.NetConcepts of Asp.Net
Concepts of Asp.Net
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Asp.net basic
Asp.net basicAsp.net basic
Asp.net basic
 
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 web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
 
Asp net
Asp netAsp net
Asp net
 
Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)Chapter 1 (asp.net over view)
Chapter 1 (asp.net over view)
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
ASP
ASPASP
ASP
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
Industrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.netIndustrial training seminar ppt on asp.net
Industrial training seminar ppt on asp.net
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Learn ASP
Learn ASPLearn ASP
Learn ASP
 
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl....net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
 

En vedette (9)

Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
 
Linq
LinqLinq
Linq
 
Linq in asp.net
Linq in asp.netLinq in asp.net
Linq in asp.net
 
tybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notestybsc it asp.net full unit 1,2,3,4,5,6 notes
tybsc it asp.net full unit 1,2,3,4,5,6 notes
 
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course AhmedabadIntroduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
 
Understanding linq
Understanding linqUnderstanding linq
Understanding linq
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 

Similaire à Introduction to ASP.NET

ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Introduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and SilverlightIntroduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and SilverlightPeter Gfader
 
Usability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET FeaturesUsability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET FeaturesPeter Gfader
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with spparallelminder
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1Neeraj Mathur
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 
Spring Portlet MVC
Spring Portlet MVCSpring Portlet MVC
Spring Portlet MVCJohn Lewis
 
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 NetAdil Mughal
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To MvcVolkan Uzun
 
ASP.NET MVC introduction
ASP.NET MVC introductionASP.NET MVC introduction
ASP.NET MVC introductionTomi Juhola
 
Spring MVC
Spring MVCSpring MVC
Spring MVCyuvalb
 
Introduction to Alfresco Surf Platform
Introduction to Alfresco Surf PlatformIntroduction to Alfresco Surf Platform
Introduction to Alfresco Surf PlatformAlfresco Software
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008Caleb Jenkins
 

Similaire à Introduction to ASP.NET (20)

ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
Asp.net control
Asp.net controlAsp.net control
Asp.net control
 
Walther Ajax4
Walther Ajax4Walther Ajax4
Walther Ajax4
 
Walther Aspnet4
Walther Aspnet4Walther Aspnet4
Walther Aspnet4
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Asp.net
Asp.netAsp.net
Asp.net
 
Introduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and SilverlightIntroduction to JQuery, ASP.NET MVC and Silverlight
Introduction to JQuery, ASP.NET MVC and Silverlight
 
Usability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET FeaturesUsability AJAX and other ASP.NET Features
Usability AJAX and other ASP.NET Features
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
ASP.Net Presentation Part1
ASP.Net Presentation Part1ASP.Net Presentation Part1
ASP.Net Presentation Part1
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Spring Portlet MVC
Spring Portlet MVCSpring Portlet MVC
Spring Portlet MVC
 
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
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
 
ASP.NET MVC introduction
ASP.NET MVC introductionASP.NET MVC introduction
ASP.NET MVC introduction
 
Spring MVC
Spring MVCSpring MVC
Spring MVC
 
Introduction to Alfresco Surf Platform
Introduction to Alfresco Surf PlatformIntroduction to Alfresco Surf Platform
Introduction to Alfresco Surf Platform
 
ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008ASP.NET AJAX with Visual Studio 2008
ASP.NET AJAX with Visual Studio 2008
 

Plus de Peter Gfader

Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity Peter Gfader
 
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019Peter Gfader
 
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)Peter Gfader
 
How to make more impact as an engineer
How to make more impact as an engineerHow to make more impact as an engineer
How to make more impact as an engineerPeter Gfader
 
13 explosive things you should try as an agilist
13 explosive things you should try as an agilist13 explosive things you should try as an agilist
13 explosive things you should try as an agilistPeter Gfader
 
You cant be agile if your code sucks
You cant be agile if your code sucksYou cant be agile if your code sucks
You cant be agile if your code sucksPeter Gfader
 
Use Scrum and Continuous Delivery to innovate like crazy!
Use Scrum and Continuous Delivery to innovate like crazy!Use Scrum and Continuous Delivery to innovate like crazy!
Use Scrum and Continuous Delivery to innovate like crazy!Peter Gfader
 
Innovation durch Scrum und Continuous Delivery
Innovation durch Scrum und Continuous DeliveryInnovation durch Scrum und Continuous Delivery
Innovation durch Scrum und Continuous DeliveryPeter Gfader
 
Qcon london2012 recap
Qcon london2012 recapQcon london2012 recap
Qcon london2012 recapPeter Gfader
 
Continuous Delivery with TFS msbuild msdeploy
Continuous Delivery with TFS msbuild msdeployContinuous Delivery with TFS msbuild msdeploy
Continuous Delivery with TFS msbuild msdeployPeter Gfader
 
Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Peter Gfader
 
Clean Code Development
Clean Code DevelopmentClean Code Development
Clean Code DevelopmentPeter Gfader
 
Data Mining with SQL Server 2008
Data Mining with SQL Server 2008Data Mining with SQL Server 2008
Data Mining with SQL Server 2008Peter Gfader
 
SSAS - Other Cube Browsers
SSAS - Other Cube BrowsersSSAS - Other Cube Browsers
SSAS - Other Cube BrowsersPeter Gfader
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesPeter Gfader
 
OLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesOLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesPeter Gfader
 
Business Intelligence with SQL Server
Business Intelligence with SQL ServerBusiness Intelligence with SQL Server
Business Intelligence with SQL ServerPeter Gfader
 
SQL Server - Full text search
SQL Server - Full text searchSQL Server - Full text search
SQL Server - Full text searchPeter Gfader
 
Work with data in ASP.NET
Work with data in ASP.NETWork with data in ASP.NET
Work with data in ASP.NETPeter Gfader
 

Plus de Peter Gfader (20)

Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity Achieving Technical Excellence in Your Software Teams - from Devternity
Achieving Technical Excellence in Your Software Teams - from Devternity
 
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
You Can't Be Agile If Your Testing Practices Suck - Vilnius October 2019
 
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)
You Cant Be Agile If Your Code Sucks (with 9 Tips For Dev Teams)
 
How to make more impact as an engineer
How to make more impact as an engineerHow to make more impact as an engineer
How to make more impact as an engineer
 
13 explosive things you should try as an agilist
13 explosive things you should try as an agilist13 explosive things you should try as an agilist
13 explosive things you should try as an agilist
 
You cant be agile if your code sucks
You cant be agile if your code sucksYou cant be agile if your code sucks
You cant be agile if your code sucks
 
Use Scrum and Continuous Delivery to innovate like crazy!
Use Scrum and Continuous Delivery to innovate like crazy!Use Scrum and Continuous Delivery to innovate like crazy!
Use Scrum and Continuous Delivery to innovate like crazy!
 
Innovation durch Scrum und Continuous Delivery
Innovation durch Scrum und Continuous DeliveryInnovation durch Scrum und Continuous Delivery
Innovation durch Scrum und Continuous Delivery
 
Speed = $$$
Speed = $$$Speed = $$$
Speed = $$$
 
Qcon london2012 recap
Qcon london2012 recapQcon london2012 recap
Qcon london2012 recap
 
Continuous Delivery with TFS msbuild msdeploy
Continuous Delivery with TFS msbuild msdeployContinuous Delivery with TFS msbuild msdeploy
Continuous Delivery with TFS msbuild msdeploy
 
Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...
 
Clean Code Development
Clean Code DevelopmentClean Code Development
Clean Code Development
 
Data Mining with SQL Server 2008
Data Mining with SQL Server 2008Data Mining with SQL Server 2008
Data Mining with SQL Server 2008
 
SSAS - Other Cube Browsers
SSAS - Other Cube BrowsersSSAS - Other Cube Browsers
SSAS - Other Cube Browsers
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting Services
 
OLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis ServicesOLAP – Creating Cubes with SQL Server Analysis Services
OLAP – Creating Cubes with SQL Server Analysis Services
 
Business Intelligence with SQL Server
Business Intelligence with SQL ServerBusiness Intelligence with SQL Server
Business Intelligence with SQL Server
 
SQL Server - Full text search
SQL Server - Full text searchSQL Server - Full text search
SQL Server - Full text search
 
Work with data in ASP.NET
Work with data in ASP.NETWork with data in ASP.NET
Work with data in ASP.NET
 

Dernier

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Dernier (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Introduction to ASP.NET

  • 1. Developing Windows and Web Applications using Visual Studio.NET Peter Gfader Senior Software Architect
  • 2. Peter Gfader SSA @ SSW Loves C# and .NET (Java not anymore) Specializes in Windows Forms ASP.NET TFS testing Automated tests Silverlight
  • 3.
  • 4.
  • 5.
  • 6. Overview of ASP.NET
  • 12.
  • 13. Menu, Navigation & Sitemaps
  • 14.
  • 15. http://sharepoint.ssw.com.au/Training/UTSNET/ Part 2: .NET Webforms Overview of .NET WebformsTODAY Data in Webforms Usability Rich Web Forms and Other ASP.NET Features Web Security Advanced Topics & Future Technology (Silverlight) The 10 SessionsNext 5 – To Do – Webforms
  • 17. HyperTextMarkupLanguage Describes a web page http://en.wikipedia.org/wiki/HTML HTML <html> <head> <title>Hello HTML</title> </head> <body> <p>Hello World!</p> </body> </html>
  • 18. Hypertext Transfer Protocol Request – Response http://en.wikipedia.org/wiki/Http HTTP GET /index.html HTTP/1.1 Host: www.example.com HTTP/1.1 200 OK Date: Mon, 23 May 2005 22:38:34 GMT Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux) Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT Content-Length: 438 Content-Type: text/html; charset=UTF-8
  • 19. Your Computer Hosting Computer Internet The Internet Server Client How a web page is shown
  • 20. Request / Response Request www.ssw.com.au The Internet Response Server HTML Client
  • 21. IL = Intermediate Language CLR = Runtime .NET Overview
  • 22. CLR Common Language Runtime = Virtual machine
  • 23. What Is ASP.NET? ASP.NET provides a complete environment for building, deploying, and running .NET Web applications. Developer Productivity Simplified page development model Target any Web client (PC or mobile device) Modular, well-factored, extensible architecture Superior debugging and tracing support Enhanced Performance, Scalability, and Reliability Compiled, not interpreted Rich caching support Web farm scalable session state Automatically detects and recovers from errors Simple Deployment and Configuration No need to bring down Web server Deploy and upgrade running applications with XCOPY XML configuration files
  • 24. User requests an application resource from the Web server. IIS forwards the call to ASP.NET’s process Application manager calls the Application domain & Processes the page. ASP.NET Page Request
  • 25. Evolution The whole .NET FX http://shrinkster.com/1515 .NET Framework
  • 26. Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) Instantiate, process and render ASP.NET Compilation
  • 27. 2 Types of Projects – 1 – Web Site Web Site Don’t use this, here for compatibility only File > New > Web Site Each page is dynamically loaded into memory Slow on first load after deployment No need to recompile for code change
  • 28. 2 Types of Projects – 2 – Web Application Web Application - Recommended File > New > Projects, then Select Web Application Compiles all pages into one DLL Faster on first load after deployment Must recompile whole site for code change Not available in Default VS 2005, requires SP2
  • 29. ASP.NETCompilation Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) Instantiate, process and render Web Site
  • 30. ASP.NETCompilation Generate Parse Code-behindclassfile ASPX Engine Request Gen’dPageClassFile ASPX File Instantiate Request Page Class Response (HTML/js/dhtml/etc…) All pre compiled! Web Application
  • 32. ASP.NET –Page/Web Form An ASP.NET Web page consists of two parts: Visual elements, which include markup, server controls, and static text. Programming logic for the page, which includes event handlers and other code.
  • 33. Things to Notice ASP.NET – Page/Web Form
  • 34. Things to Notice Page Directive ASP.NET – Page/Web Form
  • 35. Things to Notice Page Directive Server side code ASP.NET – Page/Web Form
  • 36. Things to Notice Page Directive Server side code Form ASP.NET – Page/Web Form
  • 37. Things to Notice Page Directive Server side code Form Normal HTML Structure ASP.NET – Page/Web Form
  • 38. Things to Notice Page Directive Server side code Form Normal HTML Structure Server Controls ASP.NET – Page/Web Form
  • 39. ASP.NET – Page Code Model ASP.NET provides two models for managing the visual elements and code: The Single-File Page Model <%@ Page Language="VB“> <script runat=“server”> … </script> The Code-Behind Page Model <%@ Page Language="VB“ CodeFile="SamplePage.aspx.vb“ Inherits="SamplePage“ AutoEventWire="false" %>
  • 41. Page request Start Page Initialization Load Validation PostbackEvent handling Rendering Unload http://msdn.microsoft.com/en-us/library/ms178472.aspx ASP.NET – Page Life Cycle Stages (SILVER-U)
  • 42. ASP.NET – Page Life Cycle Stages (SILVER-U) 1) Page request Occurs before the page life cycle begins. When the page is requested by a user ASP.NET determines whether the page needs to be parsed and compiled (therefore beginning the life of a page), or if a cached version of the page can be sent in response without running the page.
  • 43. ASP.NET – Page Life Cycle Stages (SILVER-U) 2) Start Page properties set Request and Response Determines whether the request is a postback or a new request and sets the IsPostBack property. Sets the page's UICulture property
  • 44. ASP.NET – Page Life Cycle Stages (SILVER-U) 3) Page Initialization Controls on the page are available Each control's UniqueID property is set. Themes are applied to the page. If the current request is a postback, the postback data has not yet been loaded and control property values have not been restored to the values from view state.
  • 45. ASP.NET – Page Life Cycle Stages (SILVER-U) 4) Page Load If the current request is a postback, control properties are loaded with information recovered from view state and control state.
  • 46. ASP.NET – Page Life Cycle Stages (SILVER-U) 5) Page Validation The Validate method of all validator controls is called Sets the IsValid property of Individual validator controls The page
  • 47. ASP.NET – Page Life Cycle Stages (SILVER-U) 6) Postback Event Handling If the request is a postback, Event handlers are called
  • 48. ASP.NET – Page Life Cycle Stages (SILVER-U) 7) PageRendering Before rendering, view state is saved for the page and all controls. During the rendering phase, the page calls the Render method for each control, providing a text writer that writes its output to the OutputStream of the page's Response property.
  • 49. ASP.NET – Page Life Cycle Stages (SILVER-U) 8) Page Unload Unload is called after the page has been: Fully rendered, Sent to the client, and Is ready to be discarded. At this point, page properties such as Response and Request are unloaded and any cleanup is performed.
  • 50. Page request Start Page Initialization Load Validation PostbackEvent handling Rendering Unload http://msdn.microsoft.com/en-us/library/ms178472.aspx ASP.NET – Page Life Cycle Stages (SILVER-U)
  • 51. PreInit Init InitComplete PreLoad Load Control events LoadComplete PreRender SaveStateComplete Render Unload ASP.NET – Page Life Cycle Events
  • 53. ASP.NET Postbacks A Page Postback is: Where the client communicates back to the server, Through the page that was originally served. The post back is a submission of the Form element.
  • 54. ASP.NET Viewstate Page ViewState Allows the state of objects (serializable) to be stored in a hidden field on the page.   ViewState is transported to the client and back to the server, Is not stored on the server or any other external source.   ViewState is used to retain the state of server-side objects between postbacks. So program can see if values have changed
  • 56. ASP.NET States Session State – allows the state of objects (serializable) to be stored for a single session (lifetime of the user’s browser or specific timeout) Application State – allows the state of objects (serializable) to be stored for the application across different sessions.
  • 58. ASP.NET – Server Controls Server controls are tags that are understood by the server. Syntax: <asp:control_name id="some_id" runat="server" /> Example: <asp:Button id="button1" Text="Click me!" runat="server" OnClick="submit" />
  • 59. Demo How to create a web application How to create a web form Designer Features Different Page Code models Postbacks Viewstate, Session State, Application State
  • 61. ASP.NET User Controls A group of server controls that are created by the user. Encapsulates certain functionality Can be used on multiple pages E.g Address User control (in your lab) Contact User Control
  • 63. ASP.NET Configuration Web.Config Similar to app.config in windows Application-wide configuration Provide application settings In XML, so it’s easy to change
  • 64. Who is the Master?
  • 65. ASP.NET 2: Master Pages Master pages new concept in ASP.NET 2.0 Allows site developers to build master templates for their site's look and feel Put common code shared by all the pages on the master page A page that references a Master Page is called a Content Page.
  • 67. How to define the Master page At the page level (in the page) <%@ Page Language="C#“ MasterPageFile="MySite.Master" %> At the application level (in web.config) <pages masterPageFile="MySite.Master" />
  • 69. ASP.NET: Validation A Validation server control is used to validate the data of an input control. If the data does not pass validation, it will display an error message to the user.
  • 70. Important Properties: ControlToValidate:The ID of the control that this validator validates. Display: Has three possible values: Dynamic space the control uses isn’t reserved for the control Static space control uses is always reserved None control is invisible EnableClientScript: Validation occurs on the Client’s Browser (default). Text: Displayed when validation fails; often used to put an asterisk or an icon next to the error or for displaying the error message in a validation summary. ASP.NET: Validation
  • 72. ASP.NET 2: Themes & Skins What is a theme? A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in a Web application, across an entire Web application, or across all Web applications on a server. A theme contains: skins, cascading style sheets (CSS), images, and other resources
  • 73. ASP.NET 2: Themes & Skins What is a skin file? A skin file has the file name extension .skin Belongs to a certain theme Contains property settings for individual controls Contains settings for server controls only
  • 74. ASP.NET 2: Themes & Skins For Example: <asp:button ID=“btnNew” With css (before skin files were around): <asp:button ID=“btnNew” runat=“server” cssclass=“blueBlackButton”/> .blueBlackButton { Background:lightblue; Color:Black; }
  • 75. ASP.NET 2: Themes & Skins But with Skins, you let the skin do the design work. In the page: <asp:button ID=“btnNew” runat="server" /> In the Skin file: <asp:buttonrunat="server" BackColor="lightblue" ForeColor="black" />
  • 76. ASP.NET 2: Themes & Skins So, when do we use css files? When you need to style non-server controls, because skin files are only for asp.net controls.
  • 77. Theme File Structure MyWebSite > App_Themes > BlueTheme > Controls.skin > BlueTheme.css > PinkTheme > Controls.skin > PinkTheme.css
  • 78. Applying Themes Apply a theme to a Web site <configuration> <system.web> <pages theme="ThemeName" /> </system.web> </configuration> Apply a theme to an individual page <%@ Page Theme="ThemeName" %>
  • 79. Done
  • 80. So who thinks Win forms are better than web forms?
  • 81. Resources Firebug http://getfirebug.com/ ASP.NET Webforms http://www.asp.net/web-forms/ ASP.NET MVC http://www.asp.net/mvc/
  • 82. Resources ASP.NET AJAX http://www.asp.net/ajax/ Ramp up your skills http://msdn.microsoft.com/rampup
  • 83. Resources – ASP.NET Quickstarts http://quickstarts.asp.net/ Master pages http://www.asp.net/learn/master-pages/ Profiles, Themes and user controls http://www.asp.net/learn/moving-to-asp.net-2.0/module-10.aspx Page lifecycle http://www.asp.net/learn/videos/video-6558.aspx
  • 84. Resources – ASP.NET Validation http://quickstarts.asp.net/QuickStartv20/aspnet/doc/validation/default.aspx Configuration & Deploying http://www.asp.net/learn/videos/video-05.aspx User controls http://www.asp.net/learn/videos/video-194.aspx
  • 85. Resources - Usergroups Silverlight Designer and Developer Network http://www.sddn.org.au/ Sydney Deep .NET User Group http://www.sdnug.org/ Newcastle Coders Group http://www.ncg.asn.au/ Sydney .NET Users Group http://www.ssw.com.au/ssw/NETUG/Sydney.aspx
  • 87. Thank You! Gateway Court Suite 10 81 - 91 Military Road Neutral Bay, Sydney NSW 2089 AUSTRALIA ABN: 21 069 371 900 Phone: + 61 2 9953 3000 Fax: + 61 2 9953 3105 info@ssw.com.auwww.ssw.com.au

Notes de l'éditeur

  1. Click to add notesPeter Gfader Developing Windows and Web applications
  2. Java current version 1.6 Update 171.7 released next year 2010Dynamic languages Parallel computingMaybe closures
  3. Show in Firebug  google.com
  4. Show in FireBug
  5. http://download.microsoft.com/download/4/a/3/4a3c7c55-84ab-4588-84a4-f96424a7d82d/NET35_Namespaces_Poster_LORES.pdf
  6. Rich UI-- Reb: Reworded the question– as it was too obvious the answer. Without it, this question requires students to process what they heard from the lecture. Original was: “So who thinks Win forms are still better than web forms? Why?”