750 likes | 908 Views
Consonant Consulting India Pvt. Ltd. ASP.NET. www.consonant-consulting.com. S afety Cables, Emergency Exits P urpose Introduction to ASP.NET, Concepts of .NET and building and deployment of simple web site data driven application A genda Follow in the next slides C ode-Of-Conduct
E N D
Consonant Consulting India Pvt. Ltd. ASP.NET www.consonant-consulting.com
Safety • Cables, Emergency Exits • Purpose • Introduction to ASP.NET, Concepts of .NET and building and deployment of simple web site data driven application • Agenda • Follow in the next slides • Code-Of-Conduct • Preferably one conversation at a time, respect each others views. • Preferably all cell phones on silent mode • Expectations • We will work on it • Roles • We all share and learn something from each other SPACER Company confidential, Consonant Consulting India Pvt. Ltd. www.consonant-consulting.com
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes
Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes
Hands On • Create a web project with web controls Agenda 90+ Minutes Quote…
“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far… Quote
…the universe is winning.” quote Rick Cook Author, The Wizardry Compiled
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
.NET – What Is It? • Software platform • .NET is not a language (Runtime and a library for writing and executing written programs in any compliant language) Introduction to the .NET Framework
A collection of technologies that • Unite isolated Web applications • Make information available anytime, anywhere • Simplify development and deployment • How does .NET achieve the above? • Web Services • ADO.NET Datasets and XML support throughout the platform • Rich tools, runtime services and XCOPY Deployment What is it?
Consistent programming model Simplified programming model Run once, run always Simplified deployment Wide platform reach Programming language integration Simplified code reuse Automatic memory and management (garbage collection) Type-safe verification Rich debugging support Consistent method failure paradigm Security Interoperability .NET Framework Features
PE header -Common Object File Format -indicates type of file : GUI,CUI or DLL. -Timestamp • CLR header -Version of the CLR Required -MethodDef metadata token of entry point (Main) -Strong Name -location/size of the module’s metadata • Metadata -tables that describe the types and members defined -tables that describe the types and members referenced • IL Code -Intermediate language (IL) code Parts of Managed Module
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
OOPS Concepts in C# Delegates C l a s s e s & O b j e c t s Events Interfaces Access Modifiers and Access Levels Anonymous Types Properties Inheritance Generics Constructors Destructors Coupling & Cohesion
Object-Oriented Programming (C# and Visual Basic) (MSDN) Object-oriented programming(WIKI) Object-Oriented Programming in C# .NET - Part 1(Code Project) http://bharatmane.com/blog/category/technology/object-oriented-programming/ Further pointers
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
Walkthrough: Creating a Basic Web Page in Visual Studio Demo
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
Introduction to the .NET Framework OOPS Concepts in C# Glance to Visual Studio 2010 ASP.net web application architecture and page lifecycle Tea Break Agenda 120 Minutes
Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes
Creating a file system Web site project. Familiarizing yourself with Visual Studio. Creating a single-file ASP.NET page. Adding controls. Adding event handlers. Running pages by using the Web server that is built into Visual Studio for testing. Demo
Web Development Using Visual Studio • Creating a Simple Web Application • Working with Controls • Introduction to Web Controls • Handling Server Control Events and page events • Lunch Break Agenda 60 + 60 Minutes
Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes
Publish the website Create Virtual Directory Application Pool Test the deployment IIS
Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes
HTTP is a stateless, session less protocol • Personalizationmakes it possible for e-businesses to communicate effectively with their customers. • Privacy • A trade-off exists, however, between personalized e-business service and protection of privacy. • RecognizingClients Session Tracking
Tracking individual clients, known as session tracking, can be achieved in a number of ways. • Using cookies. • Using ASP.NET’s HttpSessionState object. • Using “hidden” form elements. • Embedding session-tracking information directly in URLs. • Provider-based for flexible data storage • In-process (default) • State server process • SQL Server • Cookied or cookieless Session Tracking
In-Process Session State <!-- Web.config --> <configuration> <system.web> <sessionStatemode="InProc" /> ... </system.web> </configuration> Web Server ASP.NET Session state stored inside ASP.NET's worker process Session State
State Server Session State <!-- Web.config --> <configuration> <system.web> <sessionState mode="StateServer" stateConnectionString="tcpip=24.159.185.213:42424" /> ... </system.web> </configuration> Web Server State Server ASP.NET aspnet_state Process ASP.NET state service (aspnet_- state.exe)
SQL Server Session State <!-- Web.config --> <configuration> <system.web> <sessionStatemode="SQLServer" sqlConnectionString="server=orion;integrated security=true" /> ... </system.web> </configuration> Web Server Database Server ASP.NET ASPState Database Created with InstallSqlState.sql or InstallPersistSql- State.sql
Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes
Using the Visual Studio .NET Debugger • Testing Your ASP.NET Application Using Different Browsers • System.Diagnostics • Debug • Trace
Breakpoint Conditional breakpoint Demo
Creating Web Applications by Using Microsoft Visual Studio 2010 • Creating an ASP.NET Web Site • Adding and Configuring Server Controls in Web Forms • Building and Deploying an ASP.NET Web Application • Session Management • Troubleshooting and Debugging ASP.NET Applications • Exception handling Agenda 110 Minutes
A good programmer is someone who always looks both ways before crossing a one-way street. Doug Linder systems administrator Exception handling