SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Module  3: Using Microsoft .NET- Based Languages
Overview ,[object Object],[object Object],[object Object]
Lesson: Overview of the .NET-Based Languages ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Multiple Language Support ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Common Language Runtime ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
The Common Language   Runtime Components .NET Framework Class Library Support Thread Support COM Marshaler MSIL to Native Compilers Code Manager Garbage Collector Security Engine Debug Engine Class Loader Type Checker Exception Manager
Runtime Compilation and Execution Native code C# code Visual Basic .NET code default.aspx Runtime HTML Which language? Visual Basic .NET compiler C# compiler MSIL JIT compiler
What are Namespaces? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Imports System.Data.SqlClient using System.Data.SqlClient;
Using Namespaces ,[object Object],[object Object],Dim listBox1 As New System.Web.UI.WebControls.ListBox() listBox1.Items.Add("First Item") Imports System.Web.UI.WebControls ... Dim listBox1 As New ListBox() listBox1.Items.Add("First Item") using System.Web.UI.WebControls; ... ListBox listBox1 = new ListBox(); listBox1.Items.Add("First Item");  System.Web.UI.WebControls.ListBox listBox1 =  new System.Web.UI.WebControls.ListBox(); listBox1.Items.Add("First Item");
Lesson: Comparison of the .NET-Based Languages ,[object Object],[object Object],[object Object],[object Object]
Visual Basic .NET ,[object Object],[object Object],[object Object],Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 0 Dim x As Double = TextBox1.Text For i = 0 To 4   x *= 2   Label1.Text = Label1.Text & x & "," Next End Sub
C# ,[object Object],[object Object],private void Button1_Click(object sender,  System.EventArgs e) { int i = 0; double x = Convert.ToDouble(TextBox1.Text); for (i=0; i<=4; i++) { x *= 2; Label1.Text = Label1.Text + x + &quot;,&quot;; } }
Choosing a Language ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Practice: Language Translation ,[object Object],[object Object],[object Object],[object Object]
Lesson: Creating a Component Using Visual Studio .NET ,[object Object],[object Object],[object Object],[object Object]
What are Classes and Components? ,[object Object],[object Object],[object Object],[object Object],Web application Windows  application Web application component
[object Object],[object Object],[object Object],Creating a Class Public Class Shipping Function ShippingCost _ (ByVal sngPrice As Single) As Single ' … Return (sngShipping) End Function End Class public class Shipping { public Single ShippingCost (Single sngPrice) { //… return sngShipping;  } }
Using Components in an ASP.NET Web Form ,[object Object],[object Object],[object Object],sngShipping =  x.ShippingCost(sngPrice); Dim x As New CompanyA.Shipping Namespace CompanyA   Class Shipping   Function ShippingCost (…) End Class End Namespace component.dll sngShipping = _ x.ShippingCost(sngPrice) CompanyA.Shipping x = new CompanyA.Shipping(); namespace CompanyA { class Shipping { public void ShippingCost (…) { } } } component.dll
Demonstration: Creating a Class in Visual Studio .NET ,[object Object],[object Object],[object Object]
Review ,[object Object],[object Object],[object Object]
Lab 3: Building a Microsoft Visual Studio .NET Component Medical Medical.aspx Benefits Home Page Default.aspx Life Insurance Life.aspx Retirement Retirement.aspx Dental Dental.aspx Dentists Doctors Doctors.aspx  Doctors Logon Page Login.aspx Registration Register.aspx Coho Winery Prospectus Prospectus.aspx XML Web  Service dentalService1.asmx  Page Header Header.ascx ASPState tempdb Lab Web Application User Control namedate.ascx Menu  Component Class1.vb XML Files Web. config Medical Medical.aspx Benefits Home Page Default.aspx Life Insurance Life.aspx Retirement Retirement.aspx Dental Dental.aspx Dentists Doctors Doctors.aspx  Doctors Logon Page Login.aspx Registration Register.aspx Prospectus Prospectus.aspx XML Web  Service dentalService1.asmx  Page Header Header.ascx ASPState tempdb Lab Web Application User Control namedate.ascx Menu  Component Class1.vb or Class1.cs XML Files Web. config

Weitere ähnliche Inhalte

Was ist angesagt?

Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net AjaxJeff Blankenburg
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsRandy Connolly
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kitVidhi Patel
 
Ajax control asp.net
Ajax control asp.netAjax control asp.net
Ajax control asp.netSireesh K
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basicspetrov
 
Corralation
CorralationCorralation
Corralationzpl
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20HUST
 
Automation Anywhere Case study
Automation Anywhere Case studyAutomation Anywhere Case study
Automation Anywhere Case studyShekar S
 
Asp.Net Page Life
Asp.Net Page LifeAsp.Net Page Life
Asp.Net Page Lifeguest812990
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentChui-Wen Chiu
 

Was ist angesagt? (20)

Introduction To Asp.Net Ajax
Introduction To Asp.Net AjaxIntroduction To Asp.Net Ajax
Introduction To Asp.Net Ajax
 
Web controls
Web controlsWeb controls
Web controls
 
ASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation ControlsASP.NET 05 - Exception Handling And Validation Controls
ASP.NET 05 - Exception Handling And Validation Controls
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kit
 
Ajax control asp.net
Ajax control asp.netAjax control asp.net
Ajax control asp.net
 
ASP.NET AJAX Basics
ASP.NET AJAX BasicsASP.NET AJAX Basics
ASP.NET AJAX Basics
 
Corralation
CorralationCorralation
Corralation
 
Ajax part i
Ajax part iAjax part i
Ajax part i
 
servlet programming
servlet programmingservlet programming
servlet programming
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20
 
Ajax & ASP.NET 2
Ajax & ASP.NET 2Ajax & ASP.NET 2
Ajax & ASP.NET 2
 
AJAX
AJAXAJAX
AJAX
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
Automation Anywhere Case study
Automation Anywhere Case studyAutomation Anywhere Case study
Automation Anywhere Case study
 
Asp.Net Page Life
Asp.Net Page LifeAsp.Net Page Life
Asp.Net Page Life
 
ASP DOT NET
ASP DOT NETASP DOT NET
ASP DOT NET
 
Asp.Net Ajax Component Development
Asp.Net Ajax Component DevelopmentAsp.Net Ajax Component Development
Asp.Net Ajax Component Development
 
Asp
AspAsp
Asp
 
Ajax
AjaxAjax
Ajax
 
Python component in mule
Python component in mulePython component in mule
Python component in mule
 

Andere mochten auch

Andere mochten auch (7)

2310 b 01
2310 b 012310 b 01
2310 b 01
 
Android datastorage
Android datastorageAndroid datastorage
Android datastorage
 
Android stepbystep
Android stepbystepAndroid stepbystep
Android stepbystep
 
2310 b 05
2310 b 052310 b 05
2310 b 05
 
Android search
Android searchAndroid search
Android search
 
Android security
Android securityAndroid security
Android security
 
2310 b 02
2310 b 022310 b 02
2310 b 02
 

Ähnlich wie 2310 b 03

Ähnlich wie 2310 b 03 (20)

Dot Net Framework
Dot Net FrameworkDot Net Framework
Dot Net Framework
 
Introduction to Visual Studio.NET
Introduction to Visual Studio.NETIntroduction to Visual Studio.NET
Introduction to Visual Studio.NET
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
 
How to develop asp web applications
How to develop asp web applicationsHow to develop asp web applications
How to develop asp web applications
 
Visual Studio.NET
Visual Studio.NETVisual Studio.NET
Visual Studio.NET
 
01. introduction to-programming
01. introduction to-programming01. introduction to-programming
01. introduction to-programming
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basic
 
VB.Net Mod1.pptx
VB.Net Mod1.pptxVB.Net Mod1.pptx
VB.Net Mod1.pptx
 
Intro.net
Intro.netIntro.net
Intro.net
 
VB Dot net
VB Dot net VB Dot net
VB Dot net
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
ASP.NET 01 - Introduction
ASP.NET 01 - IntroductionASP.NET 01 - Introduction
ASP.NET 01 - Introduction
 
ASP.NET Basics
ASP.NET Basics ASP.NET Basics
ASP.NET Basics
 
.Net framework
.Net framework.Net framework
.Net framework
 
Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8Dbva dotnet programmer_guide_chapter8
Dbva dotnet programmer_guide_chapter8
 
01 Introduction to programming
01 Introduction to programming01 Introduction to programming
01 Introduction to programming
 
Visual Studio .NET2010
Visual Studio .NET2010Visual Studio .NET2010
Visual Studio .NET2010
 
Webhouse
WebhouseWebhouse
Webhouse
 

Mehr von Krazy Koder (20)

2310 b xd
2310 b xd2310 b xd
2310 b xd
 
2310 b xd
2310 b xd2310 b xd
2310 b xd
 
2310 b xd
2310 b xd2310 b xd
2310 b xd
 
2310 b xc
2310 b xc2310 b xc
2310 b xc
 
2310 b xb
2310 b xb2310 b xb
2310 b xb
 
2310 b 16
2310 b 162310 b 16
2310 b 16
 
2310 b 16
2310 b 162310 b 16
2310 b 16
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
2310 b 15
2310 b 152310 b 15
2310 b 15
 
2310 b 14
2310 b 142310 b 14
2310 b 14
 
2310 b 12
2310 b 122310 b 12
2310 b 12
 
2310 b 10
2310 b 102310 b 10
2310 b 10
 
2310 b 09
2310 b 092310 b 09
2310 b 09
 
2310 b 08
2310 b 082310 b 08
2310 b 08
 
2310 b 08
2310 b 082310 b 08
2310 b 08
 
2310 b 07
2310 b 072310 b 07
2310 b 07
 
2310 b 04
2310 b 042310 b 04
2310 b 04
 
2310 b 01
2310 b 012310 b 01
2310 b 01
 
Android appwidget
Android appwidgetAndroid appwidget
Android appwidget
 
Android graphics
Android graphicsAndroid graphics
Android graphics
 

2310 b 03

  • 1. Module 3: Using Microsoft .NET- Based Languages
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. The Common Language Runtime Components .NET Framework Class Library Support Thread Support COM Marshaler MSIL to Native Compilers Code Manager Garbage Collector Security Engine Debug Engine Class Loader Type Checker Exception Manager
  • 7. Runtime Compilation and Execution Native code C# code Visual Basic .NET code default.aspx Runtime HTML Which language? Visual Basic .NET compiler C# compiler MSIL JIT compiler
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Lab 3: Building a Microsoft Visual Studio .NET Component Medical Medical.aspx Benefits Home Page Default.aspx Life Insurance Life.aspx Retirement Retirement.aspx Dental Dental.aspx Dentists Doctors Doctors.aspx Doctors Logon Page Login.aspx Registration Register.aspx Coho Winery Prospectus Prospectus.aspx XML Web Service dentalService1.asmx Page Header Header.ascx ASPState tempdb Lab Web Application User Control namedate.ascx Menu Component Class1.vb XML Files Web. config Medical Medical.aspx Benefits Home Page Default.aspx Life Insurance Life.aspx Retirement Retirement.aspx Dental Dental.aspx Dentists Doctors Doctors.aspx Doctors Logon Page Login.aspx Registration Register.aspx Prospectus Prospectus.aspx XML Web Service dentalService1.asmx Page Header Header.ascx ASPState tempdb Lab Web Application User Control namedate.ascx Menu Component Class1.vb or Class1.cs XML Files Web. config