ppt on asp.net
TRANSCRIPT
WELCOME
ASP.NET
Submitted by:-Vikas sharma Information technology4 year (7th sem)
CONTENTS
Introduction about .NET framework
About framework
ASP.NET
.NET main parts
Asp. Net Controls
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 .
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.
Functionality of .NET Framework
.NET Framework parts
There are mainly 3 main parts:-
Common Language Runtime
Framework Classes/Libraries
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
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
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
ASP Object Model
ASP.DLL(if it finds <%%>, invokes Scripting
Objects Component)
Session
Application
YOU
Request
Response
Server
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
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
ASP.NET Web Page Processing
.Net Programming Languages
C#APLFortran Pascal Visual Basic.Net C++ Haskell Perl Java Language Python COBOL Microsoft Jscript
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.
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: “ />
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.
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” />
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” />
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” />
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” />
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.” />
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
The MultiView control is actually a container that holds a collection of individual View controls.
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” />
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” />
THANK YOU
QUERY ?