Вы находитесь на странице: 1из 22

PRESENTATION

ON

.NET

ANAMIKA
NATH
ROLL NO-07ESOCS011
INTRODUCTION TO .NET

• Microsoft
.NET is a software development
platform based on virtual machine architecture.

•It is designed to support programming language


independent application development.

• It
is independent of any operating system and
physical hardware machines that should contains
the implements of .NET FRAMEWORK.
APPLICATION ON .NET
 WIDONWS APPLICATION (WINFORM).
 DATA ACCESS (ADO .NET).
 WEB APPLICATION.
 WINDOWS COMPONENT (ASSEMBLIES).
 DISTRIBUTED APPLICATIONS (.NET REMOTING)
 CONSOLE APPLICATION
ARCHITECTURE
 It follows n-tier client server architecture.
 Functional components –

1. presentation layer
2. business layer
3. datalink layer
 Overcome the drawback of 2-tier

architecture
Architectural layout of .NET
.NET FRAMEWORK
 The Microsoft .NET Framework is a software framework that can be
installed on computers running Microsoft windows operating
system.
 It consists of 3 main parts…
Programming language-
a. C# (pronounced c sharp)
b. Visual basic (VB .NET)
c. J# (pronounced J sharp)
Server technologies:
a. ASP .NET (Active Server Pages like HTML)
b. Windows Forms (Windows Desktop solution)
c. Compact Framework (PDA / Mobile solution)
Development environment:
a. Visual Studio .NET (VS .NET) 2008
b. Visual Web Developer
COMMON LANGUAGE INFRASTRUCTURE
 Provide a language-neutral platform for application development
and execution, including functions for exception handling,
garbage collection, security, and interoperability.
 Microsoft's implementation of the CLI is called the Common
Language Runtime, or CLR.
 Consist of
a. memory management
b. multi-threading
c. exceptional handling
d. MSIL (microsoft intermediate language)
e. JIT compiler (just in time)
f. Application Domain
g. CTS (common time system)
h. FCL (frame-work class libraries)
CLI layout
Brief introduction of C#
 The first “component oriented” language in the
C/C++ family
◦ In OOP a component is: A reusable program that can be
combined with other components in the same system to
form an application.
◦ Example: a single button in a graphical user interface, a
small interest calculator
◦ They can be deployed on different servers and
communicate with each other

 Enables one-stop programming


 No header files, IDL, etc.
 Can be embedded in web pages
C# Program Structure
 Namespaces
◦ Contain types and other namespaces
 Type declarations
◦ Classes, structs, interfaces, enums,
and delegates
 Members
◦ Constants, fields, methods, properties, indexers, events,
operators, constructors, destructors
 Organization
◦ No header files, code written “in-line”
◦ No declaration order dependence
ASP .NET and C#
 Easily combined and ready to be used in
WebPages.
 Powerful
 Fast
 Most of the works are done without getting

stuck in low level programming and driver


fixing and …
ASP .NET simple start
Introduction to ADO .NET
 Ado .NET supports disconnected architecture.
 It transfers data to the front end in XML format.
 It also supports MS ACESS, ORACLE, SQL SERVER 2005.
 Sql server plays an important part in storage of data in
.NET, when we develop a website or online registration
system.
 The information is stored in a database in the form of
tables.
 Four basic operations are performed on the tables
collectively called as SQL QUERIES.
a. SELECT QUERY
b. INSERT QUERY
c. DELETE QUERY
d. UPDATE QUERY
ADO .NET Architecture
Creating database and operation on
database in .NET
About Visual Studio 2008
 It is an integrated development environment from
Microsoft (IDE).
 Used to develop Console Application, Windows
Application, Web Application and etc.
 Supports different programming languages.
 Features are-
a. Code editor
b. Debugger
c. Designer
d. Extensibility
e. Other tools
Designing a Web page in Visual Studio
 Visual Studio has 3 view through which we create web
page.
a. inline view
b. design view
c. code behind
 Inline view includes HTML coding of the web page.
 Code behind include the coding part or the programming
language we use for the tools used in design view (eg- C#).
 Components of design view are-
a. Solution Explorer
b. Standard tools, Navigation, Validation, Login..
c. Properties of tools etc..
d. Debug
Example of Web Application
 designing a master page- provides a consistent
layouts for the pages used in websites. Below is the
layout of master page.
Windows Application and Console Application
 Console Application- simplest frame work based
application , invoked from windows command prompt
(cmd.exe).
 It has 3 basic data streams- standard input, standard
output, standard error.
 Windows Application- is GUI (graphic user interface)
based application.
 It is done using forms and controls by dragging tools
or buttons in the form.
 Visual Studio provides various templates to choose the
type of application to run…
web application
console application
windows application and etc….
Example of Console Application

static void Main(string[]


args)
{ Console.WriteLine(“T
his is a sample console
application.”);
Console.ReadLine( ) ;
}

Output will look like as-


Example of Windows Form Application

private void
button1_Click(object
sender, System.EventArgs
e)
{

MessageBox.Show(“This is
a sample Windows
Application”);
}

Output will look like as-


THANKING YOU
QUESTIONS ???.....

Вам также может понравиться