ASP.NET
1. ASP .NET enables you to access any datasource ie., DB,text,XML files.
2. ASP .Net enables you to use programming code called templates. Which can be customized according to the data that we retrieve from the database.
3. ASP .NET enalbes you to bifurcate the logical code and the Interface into different files which further the logical file will be compiled into an DLL(Dynamic Link Library).
All Web Forms will interact with the state management which has the following components. These components are used to access the webforms for multi sessions.
Web.config is the main file which will hold the info about the application and the security info.
webservices are meant for writing the logical files and deploy to any type of application ie., windows based or web based.
These components internally interact with .netframework base class called (System) and internally calls Common Language Runtime(CLR).
Features of ASP.NET
1. Compiled Code
2. Enriched Tool Support
3. Power and Flexibility
4. Simplicity
5. Manageability
6. Scalability
7. Security
1. The code wrriten in ASP .NET gets compiled by the CLR but it will not be interpreted, unlike ASP.
2.It has fully gaphical support the way we design the same output will be seen after compilation ie., WYSIWYG(What You See Is What You Get)
3.The ASP. NET is compiled by the CLR for faster execution and it can interpret any language of source code.
4.It is very simple in programming as it is going to implement IDE(Integrated Devdelopment Environment)
5.It is vey easy to manage as the code is seperated from the HTML interface.
6.It can be run on multiprocess.
7. It provides security for the web pages so that anonymous user will not access the web page.
PROGRAMMIING MODELS
1. WebForm
2. WebServices
1. We will find the Interface designed in the webforms which will have an extension .aspx(Acitve Server Page extensions)
2. This will contain only the logic which is accessed only through the web sever and can be implemented in window based applicaiton as well as web based applicaiton.
Page Events
1.Init
2.Load
3.Control
4.UnLoad
1. This event is fired when the page is loaded to initialize all the member
variables.
2. This event is used to load all the variable info into the memory.
3. This event is fired when page s reloaded.
4. This event is fired when the page is destroyed or when the application is destroyted.
Files that are generated when the application is created.
1. Webform1.aspx
2. Global.asax(Active Server Application eXtension)
3. web.config
4. Applicationname.vsdisco(Visual Studio Dynamic Discovery)
5. Assemblyinfo.cs
6.references
1. This file is used to create the interface for the clients to operate.
2. This file keeps the different procedures like SESSION, APPLICATIONS,ERRORS.
3. This file will be in the form of an xml elements. which will keep track of all security info.
4. This file is necessaruy when u want to call the web services into ur applicaiton.
5.This file contains the info about the assemblies, interfaces, structures etc.,
5. This will contain about the default namespaces like
System, System.Data, System.Web, System.Drawing, System.XML
Structures of ASP.NET
1. Directives
2. Code Declaration Block
3. Code Render Block
4. Server Side Includes
5. Server Side Comments
1.It will specify that what compiler we have to use. It is broadly categorized into
1.1 Page Directives
1.2 Import Directives
1.1 To declare any page directives we use
<%@ Page Language="C#" %>
1.2 To declare the import directive
<%@ import namespace="System.Web.Mail" %>
2. It is used to define the functions
3. In case of code render block we assing a value to a variable which we call it as INLINE CODE and we display the value of the variable which is called INLINE EXPRESSION
4. It is used to call one file to another file. This process can be done in 2 ways.
4.1.
4.2
5.This is used to implement the comment line to the code written
ASP .NET Controls
Control are broadly categorized into 4 types
1. ASP .NET HTML Control
2. ASP .NET WEB Control
3. Validation Control
4. USer Control
1. ASP .NET Control runs from the client side. we have to fire the events explicitly
2. ASP .NET Web Control get executed from the server side ie., Web server.
3. Validation controls are called as special control. The list of validation control are
3.1.RequiredField Validator
3.2.Compare Validator
3.3.Range Validator
3.4.RegularExpression Validator
3.5.Validation Summary
3.1. It checks for the emptyness of the controls
3.2. It is used to compare the values of 2 controls like password and confirm password
3.3 It will validate for a range like the age should be between 30 and 60
3.4 It will validate for an expression like phoneno, email etc.,
3.5 We can consolidate all the messages and store it in a single control and display all the error messages.
4. User Control : We can also create our own control which will have our own properties and methods.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment