ppt on asp.net

28
WELCOME ASP.NET Submitted by:- Vikas sharma Information technology 4 year (7 th sem)

Upload: vikas-sharma

Post on 28-Mar-2015

631 views

Category:

Documents


12 download

TRANSCRIPT

Page 1: ppt on asp.net

WELCOME

ASP.NET

Submitted by:-Vikas sharma Information technology4 year (7th sem)

Page 2: ppt on asp.net

CONTENTS

Introduction about .NET framework

About framework

ASP.NET

.NET main parts

Asp. Net Controls

Page 3: ppt on asp.net

Framework

software framework is an abstraction in which common code providing generic functionality can be selectively overridden or specialized by user code providing specific functionality. it makes it easier to work with complex technologies it ties together a bunch of discrete objects/components into something more useful

it forces the team (or just me) to implement code in a way that promotes consistent coding, fewer bugs, and more flexible applications

everyone can easily test and debug the code, even code that they didn't write .

Page 4: ppt on asp.net

Microsoft .NET framework

.NET is the Microsoft Web services strategy to connect information, people, systems, and devices through software.

Integrated across the Microsoft platform, .NET technology provides the ability to quickly build, deploy, manage, and use connected, security-enhanced solutions with Web services.

Page 5: ppt on asp.net

Functionality of .NET Framework

Page 6: ppt on asp.net

.NET Framework parts

There are mainly 3 main parts:-

Common Language Runtime

Framework Classes/Libraries

ASP.NET

Page 7: ppt on asp.net

THE CORE OF .NET FRAMEWORK FCL & CLR

CLR:- The CLR compiles the source code to an intermediate language, it is possible to write the code in any language of your choice.

CLR manages code execution at runtimeMemory management, thread management, etc.Intermediate Language (IL) to native code

compilersMemory allocation and garbage collectionCode execution and securityGarbage collectionLanguage integrationMultiple versioning Integrated security support

Page 8: ppt on asp.net

FCL(Frame class Library)

Provides the core functionality: ASP.NET, Web Services, ADO.NET Windows Forms, IO, XML, etc.

Single consistent set of object oriented class libraries to enable building distributed web applications (Unified Classes)Built using classes arranged across logical hierarchical namespaces

For example: System.Data.SQL Work with all CLR languages

Page 9: ppt on asp.net

ASP.NET

Microsoft Active Server Page (ASP) is a server-side scripting technology that can be used to create dynamic and interactive Web applications.

A series of objects and components that are executed on the web server

Uses a suite of technologies that allows dynamically-generated content

Control of how content is generated from the server to the browsers

Page 10: ppt on asp.net

ASP Object Model

ASP.DLL(if it finds <%%>, invokes Scripting

Objects Component)

Session

Application

YOU

Request

Response

Server

Page 11: ppt on asp.net

ASP.NET Web Page Processing

A Web page can be

Static

• Content is fixed at design time and does not depend on user inputs• If a user requests an html page, the server knows it is a

static page

Dynamic

• Web server creates based on user inputs If a user requests an aspx page, the server knows it is a dynamic page

Page 12: ppt on asp.net

ASP.NET Web Page Processing

The client browser initially requests the ASP.NET Web page called a Web form

User interacts with the Web form

• Enters values or performs actions that cause event handlers to execute

Post back Processing

• Process of repeatedly raising events and posting the same Web form back to the server

Page 13: ppt on asp.net

ASP.NET Web Page Processing

Page 14: ppt on asp.net

.Net Programming Languages

C#APLFortran Pascal Visual Basic.Net C++ Haskell Perl Java Language Python COBOL Microsoft Jscript

Page 15: ppt on asp.net

ASP.NET CONTROLS

WEBCONTROLS

Controls are the building blocks of ASP.NET pages. In fact, about half of ASP.NET programming consists of dragging controls from the toolbox onto the page and tweaking the properties of the controls to get them just right.

TYPES

Label, Textbox, Button,Checkbox, Radio Button, Image.

Page 16: ppt on asp.net

Label Controls

A Label control displays text to identify a feature on a Web page.

The diagram shows four label controls

•The first provides instructions for the user. •The next two identify input fields the user should Enter data into. •The fourth label displays the result of a calculation

The .aspx markup looks like this for the four labels shown in Figure:<asp:Label ID=”Label1” runat=”server” Text=”Enter two numbers to add.” /><asp:Label ID=”Label2” runat=”server” Text=”First number:” Width=”110px” /><asp:Label ID=”Label3” runat=”server” Text=”Second number:” Width=”110px” /><asp:Label ID=”lblResult” runat=”server” Text=”The result is: “ />

Page 17: ppt on asp.net

 The run at attribute is also required for all ASP.NET controls.

It indicates that the control will run at the server rather than at the browser.

The Label control also includes many other properties that let you control The way the label and its text will appear.

Page 18: ppt on asp.net

Textbox Controls

A Textbox control provides a way for users to enter text data. The user can use these text boxes to enter a username and password

Figure shows a page that features two text box controls.

<asp:TextBox ID=”txtName” runat=”server” /><asp:TextBox ID=”txtPassword” runat=”server”TextMode=”Password” />

Page 19: ppt on asp.net

Button Controls

ASP.NET provides three distinct types of Button controls• Button• LinkButton• ImageButton.

<asp:Button ID=”Button1”runat=”server”Text=”Add To Cart” /><asp:LinkButtonID=”LinkButton1” runat=”server”Text=”Add To Cart” /><asp:ImageButton ID=”ImageButton1” runat=”server”ImageUrl=”~/cart.gif” />

Page 20: ppt on asp.net

CheckBox ControlsA check box is a control that the user can click to either check or uncheck.

check boxes are used to let the user specify Yes or No to an option. 

<asp:CheckBox ID=”chkPepperoni” runat=”server” Text=”Pepperoni” /><asp:CheckBoxID=”chkMushrooms” runat=”server”Text=”Mushrooms” /><asp:CheckBox ID=”chkAnchovies” runat=”server”Text=”Anchovies” />

Page 21: ppt on asp.net

RadioButton ControlsRadio buttons are similar to check boxes, but with a crucial difference: Radio buttons travel in groups, and a user can select only one radio button in each group at a time

<asp:RadioButton ID=”rdoSizeMedium” runat=”server”GroupName=”Size” Text=”Medium” /><asp:RadioButton ID=”rdoSizeLarge” runat=”server”GroupName=”Size” Text=”Large” /><asp:RadioButton ID=”rdoSizeHumongous” runat=”server”GroupName=”Size” Text=”Humongous” /><asp:RadioButton ID=”rdoCrustThin” runat=”server”GroupName=”Crust” Text=”Thin” /><asp:RadioButton ID=”rdoCrustThick” runat=”server”GroupName=”Crust” Text=”Thick” />

Page 22: ppt on asp.net

Image ControlsAn image control is simply a control that displays an image file; the user clicks the image to use the control. The two most common types of image files used in Web applications are JPEG and GIF files

<asp:Image ID=”Image1” runat=”server”ImageUrl=”~/Odie.JPG”Height=”200px” Width=”285px”AlternateText=”This is Odie.” />

Page 23: ppt on asp.net

Advanced Web Server Controls

These are describing as follows:-

• MultiView Control• Calendar Control• File Upload Control

MultiView Control

A MultiView control is a control that contains one or more views, each of which can display a different set of controls.

MultiView controls are typically used to create pages that require a lot of input from the user.

A MultiView control break the input controls into sections and display only one group of controls at a time. The result is a less confusing page that’s easier to use

Page 24: ppt on asp.net

The MultiView control is actually a container that holds a collection of individual View controls.

Page 25: ppt on asp.net

Calendar Control

Calendar control, which displays a calendar that lets the user select a date.

ASP.NET provides a more interesting feature calendar control

<asp:Calendar ID=”Calendar1”runat=”server” />

Page 26: ppt on asp.net

File Upload ControlThe File Upload control lets users upload a file to your Web site. It displays a text box in which the user can enter a filename and path

<asp:FileUpload ID=”FileUpload1” runat=”server” /><br /><br /><asp:Button ID=”btnUpload” runat=”server” Text=”Upload” />

Page 27: ppt on asp.net

THANK YOU

Page 28: ppt on asp.net

QUERY ?