Professional Documents
Culture Documents
DotNet 1
DotNet 1
TECHNOLOGIES
SRI PARAMAKALYANI COLLEGE
ALWARKURICHI
Designed by:
R. Ranjith, M.C.A., M.Phil., M.E.(CS), (SET)
Head of the Department
WEB CLIENT/SERVER MODEL
• Web client and the web server send information back and forth
using the Transmission Control Protocol / Internet Protocol.
• This is the same network protocol used by many other internet
services
• Socket is a line of plumping established by either the client and
the server software that is used to move packets of data back and
forth between the client and the server
• It is through this "channel" that request and response are
sent inside packet of data.
• A packet is a fragment of data that includes information
about it origination, its destination ,and so forth.
• Web application communicate over socket using a higher level
protocol the hypertext transfer protocol HTTP.
• Http is a simple command response system used for communication
on the web.
• It functions just as described: A command is issued by the client to the
server, then the server sends a response, thus completing the data
exchange.
• The commands sent by the client are request for files such as
hypertext markup language document and images.
• http is stateless, which means that when a client request is completed,
the web server normally closes the socket connection with the browser
and forgets the detail of exchange.
• GET method: this command accept one parameter and requested that
document from the web server.
SERVER SIDE PROCESSING THE
CGI PROGRAMS
• Web forms can run on any browser. Web forms are controlled server
side and rendered using standard HTML.
• Any dotnet compatible language can be used to code asp.net
applications.
• webforms execute inside the CLR which brings all of its advantages to
webforms including the Dot net framework class library, type safety
and other features.
DOT NET COMMON LANGUAGE
RUNTIME AND CLASS LIBRARY
• The Dot net CLR controls execution of programs. Any program
written for dotnet executes within this environment.
• Code that runs in the CLR is known as managed cord.
• The CLR also provides features purchase automatic memory
management which frees programmers from the task of managing
their own memory allocation and deallocation.
DOT NET COMMON LANGUAGE
RUNTIME AND CLASS LIBRARY
• The CLR enables language code to interact with code written in other
languages at the object level.
• The CLR can provide self-describing objects and enable code to run on
any CPU that provides an implementation of the CLR.
• Dot net framework class library is an extensive collection of data types
and objects intended to give programmers a start in developing their
applications.
• The data type and objects are designed and categorised to make accessing
system functionality such as input /output, graphics, database access and
other system level services easy.
MANAGED COMPONENTS
IN.NET
• A clerk fills out shipping information billing information and order detail
in computerized form. On completion the click send the data to the server.
• The system then calculates total cost and shipping charges and sends the
order to the companies distribution warehouse via email. The customer
credit card information is sent for processing. If credit is approved the
system in forms the customer that the order is now being processed.
• The order email is received at the warehouse and the products needed are
picked. Once the order is fulfilled the system sends an email message to
the customer that the order has been shipped.
WEB SERVICES
• Web applications have traditionally had their data and services tied
directly to to HTML and web browser.
• User simply Navigated to the appropriate website and used the sites
HTML pages as their interface to the data they wished to view and the
tasks they wished to accomplish.
• XML Web services takes a giant leap toward solving this problems. To
attack the communication dilemma, Web services relies on using https
as the network transport.
LANGUAGE INDEPENDENCE IN
THE DOT NET FRAMEWORK
• One great advantage of the.net framework platform is the ability to use any
language to write applications.
• The component object model already allows reuse of COM components to be
written in languages such as visual basic and C++.
• COM has proved very successful but the superior capabilities of the Dot net
framework language interoperability features shine.
• Cross language interoperability has many benefit Such as allowing for
enhancement to existing objects coded in one language to be added using a
different language.
• Developers can be free to use whatever language they choose to develop objects.
COM+ COMPONENT
SERVICES AND .NET
HELLO WORLD
• The basis of the VS.net integrated development environment(IDE).
• How to edit and built an application.
YOUR FIRST VB
APPLICATION
• Launch the vs.net IDE.
• Create a VB console application project. To begin a new vs.net select
file new project from the menu bar.
• once you locate and highlight the console application icon you need to
give your new project a name.
• Now click on the ok button to create the new project.
• Enter the program code
• Build and run the project
VARIABLES CONSTANTS
AND OPERATORS
• Most programming languages store data for later use. it's helpful
to be able to store intermediate result of calculations to pass to
other processing routines.
• constants are similar to variables. They hold data but unlike
variables their data cannot be modified once the constant is first
defined in a program.
• Performing arithmetic operations is central to almost any
program so most programming languages provide arithmetic
operators.
VARIABLE TYPES
• Name
• Data type
• Scope
Dim strUsername As String
• The dim command tells vb.net that you intend to use a variable
in your program with the supplied name and data type.
• vb.net has numeric data type to handle integer numbers and
fractional data types.
INTEGRAL DATA TYPE
• Byte 8 bits
• Short 16 bits
• Integer 32 bits
• Long 64 bits
FRACTIONAL DATA TYPE
Do While Energylevel()>50
WriteInBook()
If BookComplete() Then
Exit Do
End If
Loop
FOR … NEXT LOOP
Overrides
Designates that the function/property overrides a function/ property in the base class
NotOverridab1e
Prevents a method/property defined in the base class from being overridden in a derived class; the default for
class properties/methods
MustOverri de
Designates that the function/property must be overridden and implemented in the derived class and that
Mustlnherit must be defined for the class
OVERLOADING
• procedure and property names must have a unique name.
• However, there might be circumstances in which you must create
duplicate procedure and property names.
• This OOP concept is known as overloading.
• The user can cancel a sort operation already in progress by hitting the
Enter key.
• The user sees a visual indicator about the progression of the sort.
• The Progress() event is raised periodically to indicate progression of
the sort operation