0% found this document useful (0 votes)
37 views24 pages

Intro To Aspnet

This document provides an introduction and overview of ASP.NET, including its features and advantages over traditional ASP. It discusses server controls that simplify common tasks, data controls that bind to various data sources, and ASP.NET web applications including global application events and the web.config configuration file. The agenda covers these topics as well as business objects, web services, and additional topics related to ASP.NET.

Uploaded by

Gurpreet Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views24 pages

Intro To Aspnet

This document provides an introduction and overview of ASP.NET, including its features and advantages over traditional ASP. It discusses server controls that simplify common tasks, data controls that bind to various data sources, and ASP.NET web applications including global application events and the web.config configuration file. The agenda covers these topics as well as business objects, web services, and additional topics related to ASP.NET.

Uploaded by

Gurpreet Singh
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 24

Introduction to ASP.

NET

BY SUNDEEP SINGH 382/09 EE-5 SEM

Demonstrations

ASP vs. ASP.NET Server controls walk-through Validation Data controls Cookieless sessions Web services Page caching

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

Introduction to .NET
ASP.NET
Visual Basic C++ C# JScript Common Language Specification Visual Studio.NET

ASP.NET: Web Services and Web Forms

Windows Forms

ADO.NET: Data and XML Base Class Library Common Language Runtime

Agenda

Introduction to .NET ASP today ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

Classic ASP
Successes

Simple procedural programming model Access to COM Objects

ADO File system object

No compiling, just save Support for multiple scripting languages Mix HTML and code VBscript leverage Visual Basic skills

Classic ASP
Challenges

Code readability Coding overhead PostBack complexity Reuse Performance DLL locking Deployment Sessions Caching

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

ASP.NET
Features

ASPX, ASP side by side Simplified programming model Simplified deployment Better performance Caching Security Powerful controls

ASP.NET
Features

Simplified browser support Simplified form validation Code behind pages More powerful data access Web services Better session management

ASP.NET
Features

No DLL locking No DLL registration Simplified configuration Pagelets

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

Server Controls
Simplify Common Tasks

Simplify common tasks


Forms Tables Data display Calendar Ad rotator

Server-side programming model Automatic browser compatibility Less code, less complexity Extensible

Server Controls
HTML and Server Controls
<div id="MyDiv" runat="server"/> <asp:TextBox id="txtUserName" runat="Server"/> <asp:button type="submit" OnClick="SubmitBtn_Click" runat="server"/>

ID uniquely identifies control Runat enables server-side processing OnClick identifies server-side event handler

Server Controls
Forms
<script language="C#" runat=server> void SubmitBtn_Click(Object sender, EventArgs e) { Response.Write (Hello + txtUserName.Text); } </script>

PostBack

Server-side object automatically populated from client-side controls

Server Controls
Browser Support

Targets client on the fly <asp:textbox ForeColor=red/>


Style Font

Validation

Client-side Server-side

Server Controls
Validation

Without code

Required field Within range Two fields equal (password) Regular expressions Validation error messages Custom validation

With code, but simplified

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

Data Controls

Bind to many data sources

Collections

Array HashTable DataReader DataSet

ADO.NET

XML

Data Controls
ADO.NET

Connection Command DataReader DataSet DataAdapter DataView

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

ASP.NET Web Applications

Global ASAX

Application_Start Application_End Session_Start Session_End

Session Application

ASP.NET Web Applications


web.config

Site configuration file Like an .INI file for your site XML format Extensible Some settings

Security Session Localization Tracing Debugging

Agenda

Introduction to .NET Classic ASP ASP.NET Server controls Data controls ASP.NET Web applications Business objects Web services Additional topics

You might also like