asp net
Download
Skip this Video
Download Presentation
ASP.NET

Loading in 2 Seconds...

play fullscreen
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
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

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

agenda3

Hands On

    • Create a web project with web controls
Agenda

90+ Minutes

Quote…

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
quote1

…the universe

is winning.”

quote

Rick Cook

Author,

The Wizardry Compiled

agenda4

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

.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
what is it

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?
net framework features

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
parts of managed module

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
agenda5

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

further pointers

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
agenda6

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

agenda7

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

agenda8

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

agenda9

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

slide35

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
agenda10

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

agenda11

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

slide38

Publish the website

Create Virtual Directory

Application Pool

Test the deployment

IIS
agenda12

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

session tracking

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
session tracking1

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

agenda13

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

slide47

Using the Visual Studio .NET Debugger

  • Testing Your ASP.NET Application Using Different Browsers
  • System.Diagnostics
    • Debug
    • Trace
slide48

Breakpoint

Conditional breakpoint

Demo
agenda14

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

exception handling

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

Doug Linder

systems administrator

Exception handling
exception handling1

Goal:

    • 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

Catches unhandled exceptions on Page

void Page_Error()

{

//handle error (write to log, redirect, etc.)

}

Page Level error trapping
application level

Catches all unhandled exceptions

  • Two options:
    • Global.asax
    • Web.Configfile
Application Level

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

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

</customErrors>

agenda15

Hands On

    • Create a web project with web controls
Agenda

90+ Minutes

Quote…

day 2

ADO.Net

  • 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

  • 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

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?

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.

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?
net data providers
.NET Data Providers

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 object model

Fill

DataAdapter

DataSet

Update

Errors Collection

UpdateCommand

SelectCommand

InsertCommand

DeleteCommand

Command

Connection

Parameters

Data Source

getting data

SqlCommandExecuteReaderExecuteNonQueryExecuteScalarExecuteXMLReaderSqlCommandExecuteReaderExecuteNonQueryExecuteScalarExecuteXMLReader

SqlDataAdapterDataSet

Getting data
day 22

ADO.Net

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

ADO.Net

  • 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

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

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

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

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

Company confidential, Consonant Consulting India Pvt. Ltd.

www.consonant-consulting.com

ad