.NET & C# Introduction 11 March, 2004 Yusung Kim CS441 Introduction to Computer Networking.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
.NET Framework Overview Pingping Ma Nov 16 th, 2006.
Henrico Dolfing Business Segment Partners. Océ Document Technologies GmbH2 June, NET Framework Version 3.0.
What is.NET?. The Clients of.NET a) A new generation of connected application b) Microsoft.NET Framework managed execution c) Allows PCs and other smart.
Microsoft.Net Technology Sachin Shetty Vimal Amin Thomas Mullasaril Vinutna Pulavarti Software Engineering CS616 Instructor:Dr.Tappert.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
CSE3030Lecture 11 Know Your User The First Slogan.
ISYS 512 Business Application Design and Development with.Net David Chao.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
Microsoft Visual Basic 2012 CHAPTER ONE Introduction to Visual Basic 2012 Programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
.NET, and Service Gateways Group members: Andre Tran, Priyanka Gangishetty, Irena Mao, Wileen Chiu.
INTRODUCTION TO WEB DATABASE PROGRAMMING
A Free sample background from © 2001 By Default!Slide 1.NET Overview BY: Pinkesh Desai.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to .Net Framework
ISYS 512 Business Application Design and Development with.Net David Chao.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
High thoughts must have high language. Aristophanes
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
Session 1 - Introduction and Data Access Layer
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
Introduction to Microsoft.Net Session 01 Mata kuliah: M0874 – Programming II Tahun: 2010.
What is.NET?.NET is a "revolutionary new platform, built on open Internet protocols and standards, with tools and services that meld computing and communications.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Introduction to .NET Rui Ye.
 Internet providing backbone for applications  Use of several web sites and devices to provide one complete solution  Software as services  Quick software.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
C# Overview and Features. Content I.History of C# II.Architecture III.How to install IV.Features V.Code Sample VI.Microsoft.NET Platform VII.Why use C#
Java Introduction Lecture 1. Java Powerful, object-oriented language Free SDK and many resources at
ISYS 573 Special Topic – VB.Net David Chao. The History of VB Early 1960s:BASIC-Beginner’s All-Purpose Symbolic Instruction Code –Teaching –Simple syntax,
Component-Based Software Engineering Introduction to.NET Paul Krause.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Internet Applications and Network Programming Dr. Abraham Professor UTPA.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
tom perkins1 XML Web Services -.NET FRAMEWORK – Part 1 CHAPTER 1.1 – 1.3.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
ISYS 350 Business Application Development David Chao.
Introducing Visual Studio.NET Petar Banov. Introducing Visual Studio.NET What is.NET all about?.NET Technologies Visual Studio.NET.
Microsoft.NET Norman White Stern School of Business.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
.NET Ying Chen Junwei Chen. What is Microsoft.NET. NET is a development platform Incorporated into.NET COM+ component services ASP web development framework.
Microsoft .NET A platform that can be used for building and running windows and web applications such that the software is platform and device-independent.
Getting Started with.NET Getting Started with.NET/Lesson 1/Slide 1 of 31 Objectives In this lesson, you will learn to: *Identify the components of the.NET.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
Common Language Runtime Introduction  The common language runtime is one of the most essential component of the.Net Framework.  It acts.
ISYS 512 Business Application Design and Development with.Net David Chao.
July 22, 2001Introduction to.NET1 Introduction to.NET Framework Gholamali Semsarzadeh July 2001.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Microsoft Visual Basic 2015 CHAPTER ONE Introduction to Visual Basic 2015 Programming.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Intro to ASP.NET CS-422 Dick Steflik. What is.NET As applications in the Enterprise become more and more netcentric and less and less standalone.NET is.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Introducing the Microsoft® .NET Framework
Introduction to .NET framework
Introduction to Visual Basic 2008 Programming
Introduction to .NET Framework Ch2 – Deitel’s Book
ADEV 239 Microsoft .NET and GeoMedia
Presentation transcript:

.NET & C# Introduction 11 March, 2004 Yusung Kim CS441 Introduction to Computer Networking

What is.NET ? Microsoft.NET is a set of software technologies for connecting information, people, systems, and devices. This new generation of technology is based on Web services; small building-block applications that can connect to each other as well as to other, larger applications over the Internet..NET is a development platform that makes it easier for programmers using different languages to quickly create robust internet applications.

What is.NET ? cont. Language interoperability: A developer picks the.NET language that he likes most, writes components in it, and shares the complied binary versions of his components with developers using other.NET languages.NET offers Base classes and Common Language Runtime

Defining the Basic Elements of.NET

Web Services Web services let applications share data, and -more powerfully - invoke capabilities from other applications without regard to how those applications were built, what operating system or platform they run on, and what devices are used to access them. Although Web services remain independent of each other, they can loosely link themselves into a collaborating group that performs a particular task. e.g.

What Is the.NET Framework? The.NET Framework is an integral Windows component for building and running the next generation of software applications and Web services.  Supports over 20 different programming languages.  Manages much of the plumbing involved in developing software, enabling developers to focus on the core business logic code.  Makes it easier than ever before to build, deploy, and administer secure, robust, and high-performing applications. The.NET Framework is composed of the common language runtime and a unified set of class libraries

.NET Framework & Development tool

Common Language Runtime The common language runtime (CLR) is responsible for run-time services such as language integration, security enforcement, and memory, process, and thread management. Its is similar to Virtual Machine of Java  Garbage collection  Common Type System (System.Int32, System.String, System.Boolean)  Just In Time Compile  Exception Handling  Security  Assembly * Platform & Language Independence

Runtime * Traditionally, a “runtime’ was a component that a computer had to have in order to execute programs written in a particular programming language. In order to execute Visual Basic programs, a machine had to have the VB runtime (msvbvm.dll) installed. Java programs and C++ programs required unique runtime components too.

Intermediate Language (IL) C++ C# VB … Intermediate Language CLR Execute Compile Language compatibility !!!

Base Class Libraries Base classes provide standard functionality such as input/output, string manipulation, security management, network communications, thread management, text management, and user interface design features. The ADO.NET classes enable developers to interact with data accessed in the form of XML through the OLE DB, ODBC, Oracle, and SQL Server interfaces. XML classes enable XML manipulation, searching, and translations. The ASP.NET classes support the development of Web-based applications and Web services. The Windows Forms classes support the development of desktop-based smart client applications. Together, the class libraries provide a common, consistent development interface across all languages supported by the.NET Framework.

.NET framework VS Java  CLR vs JVM  CTS, CIL vs JVMS  Assemblyvs Jar (Java Archive)  Metadatavs Jar Manifest  FCLvsJava APIs

Advantages of.NET Language Independence Better Support for Dynamic Web pages  ASP.NET Data Access  ADO.NET No More DLL Hell Improved Security Zero Impact Installation Support for Web Services

What is C# C# is Microsoft’s new language, designed specifically for their new platform, the.NET Framework. C# is a simple, modern, object-oriented, and type-safe programming language that combines the high productivity of rapid application development languages with the raw power of C and C++

What to do with C# Console Applications Windows Applications Web Applications: ASP.NET Web Services

Socket A socket is a communication mechanism. A socket is normally identified by a small integer which may be called the socket descriptor. The socket mechanism was first introduced in the 4.2 BSD Unix system in 1983 in conjunction with the TCP/IP protocols that first appeared in the 4.1 BSD Unix system in late Formally a socket is defined by a group of four numbers, these are  The remote host identification number or address  The remote host port number  The local host identification number or address  The local host port number Users of Internet applications are normally aware of all except the local port number, this is allocated when connection is established and is almost entirely arbitrary unlike the well known port numbers associated with popular applications. To the application programmer the sockets mechanism is accessed via a number of functions.  socket() : create a socket  bind() : associate a socket with a network address  connect() : connect a socket to a remote network address  listen() : wait for incoming connection attempts  accept() : accept incoming connection attempts

/* Client Program */ using System; using System.IO; using System.Net; using System.Text; using System.Net.Sockets; public class clnt { public static void Main() { try { TcpClient tcpclnt = new TcpClient(); Console.WriteLine("Connecting.....“ ); tcpclnt.Connect(" ",8001); // use the ipaddress as in the server program Console.WriteLine("Connected"); Console.Write("Enter the string to be transmitted : ") ; String str=Console.ReadLine(); Stream stm = tcpclnt.GetStream(); ASCIIEncoding asen= new ASCIIEncoding(); byte[] ba=asen.GetBytes(str); Console.WriteLine("Transmitting....."); stm.Write(ba,0,ba.Length); byte[] bb=new byte[100]; int k=stm.Read(bb,0,100); for (int i=0;i<k;i++) Console.Write(Convert.ToChar(bb[i])); tcpclnt.Close(); } catch (Exception e) { Console.WriteLine("Error..... " + e.StackTrace); }

/* Server Program */ using System; using System.Text; using System.Net; using System.Net.Sockets; public class serv { public static void Main() { try { IPAddress ipAd = IPAddress.Parse(" "); // use local m/c IP address TcpListener myList=new TcpListener(ipAd,8001); /* Initializes the Listener */ myList.Start(); /* Start Listeneting at the specified port */ Console.WriteLine("The server is running at port "); Console.WriteLine("The local End point is :" + myList.LocalEndpoint ); Console.WriteLine("Waiting for a connection....."); Socket s=myList.AcceptSocket(); Console.WriteLine("Connection accepted from "+s.RemoteEndPoint); byte[] b=new byte[100]; int k=s.Receive(b); Console.WriteLine("Recieved..."); for (int i=0;i<k;i++) Console.Write(Convert.ToChar(b[i])); ASCIIEncoding asen=new ASCIIEncoding(); s.Send(asen.GetBytes("The string was recieved by the server.")); Console.WriteLine("\nSent Acknowledgement"); s.Close(); myList.Stop(); } catch (Exception e) { Console.WriteLine("Error..... " + e.StackTrace); } }

Reference.NET - (korean) - S. Rovinson et al, Professional C#, 2nd Edition, WROX