Asp net
Download
1 / 75

ASP.NET - PowerPoint PPT Presentation


  • 96 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'ASP.NET' - jessie


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Asp net

Consonant Consulting India Pvt. Ltd.

ASP.NET

www.consonant-consulting.com


Spacer

  • 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


Agenda

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


Agenda1

  • 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


Agenda2

Agenda

110 Minutes


Agenda3

  • Hands On 2010

    • Create a web project with web controls

Agenda

90+ Minutes

Quote…


Quote

2010 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


Quote1

…the universe 2010

is winning.”

quote

Rick Cook

Author,

The Wizardry Compiled


Agenda4

Introduction to the .NET Framework 2010

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

  • .NET – What Is It? 2010

    • 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




What is it

  • A collection of technologies that 2010

    • 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?


Net framework features

Consistent programming model 2010

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


Components of net
Components of 2010 .net


Parts of managed module

  • PE header 2010

    -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




Agenda5

Introduction to the .NET Framework 2010

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
OOPS Concepts in C# 2010

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


Further pointers

Object-Oriented Programming (C# and Visual Basic 2010 ) (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


Agenda6

Introduction to the .NET Framework 2010

OOPS Concepts in C#

Glance to Visual Studio 2010

ASP.net web application architecture and page lifecycle

Tea Break

Agenda

120 Minutes





Agenda7

Introduction to the .NET Framework 2010

OOPS Concepts in C#

Glance to Visual Studio 2010

ASP.net web application architecture and page lifecycle

Tea Break

Agenda

120 Minutes






Agenda8

Introduction to the .NET Framework 2010

OOPS Concepts in C#

Glance to Visual Studio 2010

ASP.net web application architecture and page lifecycle

Tea Break

Agenda

120 Minutes


Agenda9

  • Web Development Using Visual Studio 2010

    • 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


Asp net

Creating a file system Web site project. 2010

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


Agenda10

  • Web Development Using Visual Studio 2010

    • 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


Agenda11

Agenda

110 Minutes


Asp net

Publish the website 2010

Create Virtual Directory

Application Pool

Test the deployment

IIS


Agenda12

Agenda

110 Minutes


Session tracking

HTTP is a stateless, 2010 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


Session tracking1

  • Tracking individual clients, known as 2010 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
In-Process Session State 2010

<!-- 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
State Server Session State 2010

<!-- 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
SQL Server Session State 2010

<!-- 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



Agenda13

Agenda

110 Minutes


Asp net

  • Using the Visual 2010 Studio .NET Debugger

  • Testing Your ASP.NET Application Using Different Browsers

  • System.Diagnostics

    • Debug

    • Trace


Asp net

Breakpoint 2010

Conditional breakpoint

Demo


Agenda14

Agenda

110 Minutes


Exception handling

A 2010 good programmer is someone who always looks both ways before crossing a one-way street.

Doug Linder

systems administrator

Exception handling


Three golden rules for defect free software

Prevent Them… 2010

Prevent Them…

Prevent Them…

Three golden rules for defect free software


Exception handling1

  • Goal: 2010

    • User NEVER sees yellow screen!!

  • Implementation:

    • Robust programming

      • Validate all user inputs

      • Handle foreseeable problems

    • Trap all errors

      • Handle gracefully

        • Error Pages

Exception handling


Page level error trapping

Page Level error trapping


Application level

Application Level

<customErrorsdefaultRedirect="http://..." mode="On">

<error statusCode="404" redirect="filenotfound.htm" />

</customErrors>


Agenda15

  • Hands On 2010

    • Create a web project with web controls

Agenda

90+ Minutes

Quote…


Day 2

  • ADO.Net 2010

  • SQL - Creating tables, Stored procedures and integrating with Visual studio

  • Tea break

  • Securing ASP.NET Web Application

  • Q&A

  • Lab

    • Asp.net web project with SQL integration

Day 2


Day 21

  • ADO.Net 2010

  • SQL - Creating tables, Stored procedures and integrating with Visual studio

  • Tea break

  • Securing ASP.NET Web Application

  • Q&A

  • Lab

    • Asp.net web project with SQL integration

Day 2


What is ado net

The data access classes for the .Net framework 2010

Designed for highly efficient data access

Support for XML and disconnected record sets

What is ADO.Net?


Where does ado net sit
Where does ado.net sit? 2010

VB

C#

C++

Jscript

Common Language Specification

ASP.Net

Windows Forms

Visual Studio .NET

ADO.Net

XML.Net

Base Class Library

Common Language Runtime (CLR)

Windows

COM+ Services


What happened to ado

ADO still exists. 2010

ADO is tightly coupled to client server architectures

Needs COM marshalling to pass data between tiers

Connections and locks are typically persisted

What happened to ADO?


Ado ado net comparisons
ADO / 2010 ADO.Net Comparisons


Ado ado net comparisons1
ADO / 2010 ADO.Net Comparisons


Net data providers
.NET Data Providers 2010

SQL .NET

Data Provider

SQL SERVER

OLE DB .NET

Data Provider

OLE DB

Provider

Client

Other DB

ODBC .NET

Data Provider

ODBC

Driver

Other DB


Ado net object model
ADO.Net 2010 object model

Fill

DataAdapter

DataSet

Update

Errors Collection

UpdateCommand

SelectCommand

InsertCommand

DeleteCommand

Command

Connection

Parameters

Data Source


Getting data

SqlCommand 2010 ExecuteReaderExecuteNonQueryExecuteScalarExecuteXMLReader

SqlDataAdapterDataSet

Getting data


Day 22

  • ADO.Net 2010

  • SQL - Creating tables, Stored procedures and integrating with Visual studio

  • Tea break

  • Securing ASP.NET Web Application

  • Q&A

  • Lab

    • Asp.net web project with SQL integration

Day 2


Asp net

Basics 2010

Demo

SQL


Day 23

  • ADO.Net 2010

  • SQL - Creating tables, Stored procedures and integrating with Visual studio

  • Tea break

  • Securing ASP.NET Web Application

  • Q&A

  • Lab

    • Asp.net web project with SQL integration

Day 2


Day 24

  • ADO.Net 2010

  • SQL - Creating tables, Stored procedures and integrating with Visual studio

  • Tea break

  • Securing ASP.NET Web Application

  • Q&A

  • Lab

    • Asp.net web project with SQL integration

Day 2


Securing asp net web application

  • Three Categories of Web Security 2010 :

    • Content freely available to everyone (public).

    • Serve the general population but require a login (application-level security, protected).

    • Intranet sites for a controlled population of users — a company’s employees (private).

  • Security Issues:

    • Application-level security (users).

    • Deployment security (programmers).

  • Web Security Components:

    • Authentication identifies the originator of requests (who).

    • Authorization defines who can access which pages (what).

Securing ASP.NET Web Application


Authentication

  • ASP.NET supports three types of authentication: 2010

    • Forms (Page-wide)

    • Windows (Machine-wide)

    • Passport (Internet-wide)

    • None

  • Web.config

    <configuration>  <system.web> 

        <authentication mode="Forms"/>  

    </system.web> </configuration>

Authentication


Authorization

  • ASP.NET supports two forms of authorization: 2010

    • ACL (access control list) authorization, also known as file authorization, based on file system permissions, typically used with Windows authentication.

    • URL authorization, relies on configuration directives in Web.config files, most often used with forms authentication.

Authorization


Some good resources

http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspxhttp://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx

Some good resources


Questions
Questions?http://weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx

Company confidential, Consonant Consulting India Pvt. Ltd.

www.consonant-consulting.com


ad