developing an aspnet web application

26
Company Profile Welcome to Satyam Software Solutions Pvt. Ltd. The people of S-CUBE have strong interests in embedded systems development. S-CUBE has provided reliable, cost- effective solutions that enable organization to deter counterfeiting enhance software, security and facilitate the effectiveness of embedded application programs. We are developing generic NANO OS which is flexible, dynamic, and easy manageable for Sensor network application programmer. We are aiming towards developing NANO OS for Robotic development and other solutions.

Upload: rahul-bansal

Post on 07-May-2015

2.402 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: Developing an aspnet web application

Company Profile

Welcome to Satyam Software Solutions Pvt. Ltd.

The people of S-CUBE have strong interests in embedded systems development.

S-CUBE has provided reliable, cost-effective solutions that enable organization to deter counterfeiting enhance software, security and facilitate the effectiveness of embedded application programs.

We are developing generic NANO OS which is flexible, dynamic, and easy manageable for Sensor network application programmer. We are aiming towards developing NANO OS for Robotic development and other solutions.

Page 2: Developing an aspnet web application

Company Profile

Hardware Development:

Microprocessor board development Custom board development Power board development

Page 3: Developing an aspnet web application

ASP.NET Web Application

Page 4: Developing an aspnet web application

Agenda

Overview of .NET

Overview of ASP.NET

Creating an ASP.NET Web Form

Validating User Input

Page 5: Developing an aspnet web application

Overview of .NET

Page 6: Developing an aspnet web application

What is the .NET Framework?

Developer Tools

Clients

User Experiences

ASP.NET Web Applications

XML Web Services

Databases

.NET Framework

Page 7: Developing an aspnet web application

Benefits of .NET

Fully object-oriented languages

Common runtime engine shared by all languages

Base class library usable by all languages

Simplified deployment

Better security

Better performance

Language independent Solves existing problems:

Even with the Internet, most applications and devices have trouble communicating with each other

Page 8: Developing an aspnet web application

The .NET Framework Components

OS

Common Language Runtime

.NET Framework Class Library

ADO.NET and XML

XML Web Services User Interface

VisualBasic C++ C#

ASP.NET

Perl Python …

Page 9: Developing an aspnet web application

How is language interoperability achieved?

All .NET languages must follow the rules in the Common Language Specification (CLS).

These rules define a subset of common data types and programming constructs that all .NET languages must support.

All .NET languages are compiled into a common format.

All code is compiled into Microsoft Intermediate Language (MSIL), also called Common Intermediate Language (CIL or simply IL), rather than binary.

Page 10: Developing an aspnet web application

The Common Language Runtime

The CLR is the execution engine for .NET framework applications.

provides a common runtime environment for the execution of code written in any of the .NET languages

Manages threads and memory Garbage collection

Enforces code security

CLR and Java's JVM are similar in that they are both runtime infrastructures that abstract the underlying platform differences

Page 11: Developing an aspnet web application

.NET Framework Base Class Library

The .NET Framework base class library (BCL) is a large set of standard classes and other types.

This library includes classes for:

working with the base types and exceptions, representing common data structures and collections, performing data access, constructing Windows and Web interfaces. It contain Core Set Of Classes: Ms Core.dll System.dll System.core.dll

Page 12: Developing an aspnet web application

Multiple Language Support

The .NET Framework is designed to support many languages More than 20 languages currently supported Microsoft provides Visual Basic .NET, C#,

Visual J# .NET, and JScript .NET Benefits of multiple-language support

Code modules are reusable Class Library access is the same for all languages The right language is used for the right task Performance is roughly equal between all languages

Page 13: Developing an aspnet web application

Overview of ASP.NET

Page 14: Developing an aspnet web application

Overview of ASP.NET

Creation, deployment, and execution of Web Applications and Web Services

ASP.NET is a Microsoft Technology

ASP stands for Active Server Pages

Server Side Scripting

Language Interoperability

Browser Independent

Controls and infrastructure simplify the building of Web Applications

Interactive Web application & DataBase management

ASP.NET is a program that runs inside IIS

Page 15: Developing an aspnet web application

How does ASP.NET work?

Requests an HTML file, the server returns the file

Requests an ASP.NET file, IIS passes the request to the ASP.NET

engine on the server

The ASP.NET engine reads the file, line by line, and executes the

scripts in the file

ASP.NET file is returned to the browser as plain HTML

Page 16: Developing an aspnet web application

ASP.NET Runtime Compilation and Execution

Nativecode

C# Visual Basic .NET

Which language?

Visual Basic .NETcompiler

C#compiler

MSILJITcompiler

default.aspx

Common Language Runtime

HTML

Page 17: Developing an aspnet web application

Master Pages

Master pages allow you to create a consistent look and behavior for all the pages (or group of pages) in your web application.

The content pages contains the content you want to display.

When users request the content page, ASP.NET merges the pages to produce output that combines the layout of the master page with the content of the content page.

This master page was saved with the name "master1.master".

Note: The master page can also contain code, allowing dynamic content.

Page 18: Developing an aspnet web application

HelloWorld.aspx Example

Page 19: Developing an aspnet web application

How to Implement Code

Form1.aspx Form1.aspx Form1.aspx.vbor Form1.aspx.cs

<tags><tags> code

code

Separate filesSingle file

Code-Behind PageCode-Behind Page

Three methods for adding code: Put code in the same file as content (mixed) Put code in a separate <SCRIPT> section of the content

file (inline code) Put code in a separate file (code-behind pages)

Code-behind pages are the Visual Studio .NET default

Page 20: Developing an aspnet web application

You need specific functionality such as a calendar or ad rotator

The control will interact with client and server script

You are writing a page that might be used by a variety of browsers

You are working with existing HTML pages and want to quickly add ASP.NET Web page functionality

You prefer a Visual Basic-like programming model

You prefer an HTML-like object model

Use Web Server Controls if:Use HTML Server Controls if:

Bandwidth is not a problemBandwidth is limited

Selecting the Appropriate Control

Page 21: Developing an aspnet web application

Navigation

Maintaining the menu of a large web site is difficult and time consuming.

In ASP.NET 2.0 the menu can be stored in a file to make it easier to maintain. This file is normally called web.sitemap, and is stored in the root directory of the web.

In addition, ASP.NET 2.0 has three new navigation controls:

Dynamic menus

Tree Views

Site Map Path

Page 22: Developing an aspnet web application

Validating User Input

Page 23: Developing an aspnet web application

What Is Input Validation?

Verifies that a control value is correctly entered by the user

Blocks the processing of a page until all controls are valid

Avoids spoofingor the addition ofmalicious code

Page 24: Developing an aspnet web application

Client-Side and Server-Side Validation

ASP.NET can create both client-side and server-side validation

Client-side validation Dependent on browser

version Instant feedback Reduces postback cycles

Server-side validation Repeats all client-side

validation Can validate against stored

data

Valid?

Valid?

User Enters Data

No

No

Yes

Yes

Error Message

Client

Server

Web FormProcessed

Page 25: Developing an aspnet web application

ASP.NET Validation Controls

Control Name PurposeRequiredFieldValidator Require user inputCompareValidator Compare to another control, a

value, or a data typeRangeValidator Compare to a rangeCustomValidator Compare to a custom formulaRegularExpressionValidator Compare to a regular expression

pattern

ValidationSummary Summarize the state of the validation controls on a page

Page 26: Developing an aspnet web application

Summary

ASP .NET simplifies Web Application development

Scalable, better performing applications

Makes developers more productive

Makes systems more reliable

Makes systems easier to deploy