Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs.

Slides:



Advertisements
Similar presentations
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Advertisements

11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.
Chapter 1: An Introduction To ASP.NET Web Programming
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Introduction to ASP.NET
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
Rajeswari Indupuri Introduction to.NET Framework.
Computer science Languages, etc.. Overview For web-applications (HTML, JS) – Designing languages (HMTL, CSS) – Server Languages (PHP, ASP) – Extensions.
CSCI 3327 Visual Basic Chapter 1: Introduction to Visual Basic
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 ASP.NET. 2 ASP.NET Architecture ASP.NET uses the CLR to replace the existing ISAPI/ASP infrastructure of IIS with a more efficient and easier-to-use.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC.
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.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment.
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.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
Introduction to ASP.NET 1www.tech.findforinfo.com.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Dynamic Content On Edge Cache Server (using Microsoft.NET) Name: Aparna Yeddula CS – 522 Semester Project Project URL: cs.uccs.edu/~ayeddula/project.html.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
.Net – The First Glance What Is.Net, Why Use.Net.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
From DNA to.NET Design Path. Objectives Sketch up a typical Win DNA Application Sketch up the.NET version Compare Design and Implementation Advantages.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
Module 4: Creating a Microsoft ASP.NET Web Form. Overview Creating Web Forms Using Server Controls.
Session 4: HTML and Web Server Controls. Outline Creating Web Forms Using Server Controls HTML Server Controls Web Server Controls Writing ASP Code Inline.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Module 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
Christopher M. Pascucci.NET Programming CodeBehind.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
Module 1: Overview of the Microsoft .NET Framework
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
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.
Introduction to ASP.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting languages.
PROGRAMMING IN VISUAL BASIC.NET CREATING YOUR FIRST WEB APPLICATION Bilal Munir Mughal 1 Chapter-3.
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.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
Svetlin Nakov Telerik Corporation
E-commerce Foundations By Dr. Gabriel. Using 3-Tier/N-Tier Architecture The presentation tier The business tier The data tier.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
ASP.NET Part I Dr. Awad Khalil Computer Science Department AUC.
Computing with C# and the .NET Framework
Haritha Dasari Josue Balandrano Coronel -
Module 1: Getting Started
برمجه صفحات الانترنتASP
ASP.NET Module Subtitle.
A Little Bit of Active Server Pages (ASP)
Presentation transcript:

Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs

CSDemoClass.cs using System; namespace CSDemo { public class CSDemoClass { … protected String getDateTime(){ return DateTime.Now.ToString(); }

VBDemoClass.vb Public Class VBDemoClass Public Sub ShowTime(ByVal time as String) MsgBox(time, MsgBoxStyle.Information, “VB MsgBox”) End Sub End Class

Demo.cs using System; using CSDemo; using VBDemo; namespace Demo { class Demo { static void Main(string[] args) { String date; CSDemoClass csApp = new CSDemoClass(); VBDemoClass vbApp = new VBDemoClass(); date = csApp.getTime(); vbApp.ShowTime(date); }

Cross-Language Example

Using.NET Jiunwei Chen

ASP.NET Evolution of ASP (Active Server Pages) Traditional web scripting language Features Use any.NET language (C#, VB, COBOL, etc) Compiled and executed in native machine code Allows for code-behind Objected-oriented web development environment Web Forms and Web Services

Network Managed Process ASP.NET Hosting the.NET Framework CLR Web form and custom application objects Request and post-back form information HTML representation of application UI Web Server Browser-Client ASP.NET in Context

Code Behind Separation of the HTML and the code Markup resides in an.ASPX file Code lies in a C# (.CS) file or managed assembly (.DLL) ASP.NET Class is derived from System.Web.UI.Page HTML is generated and sent to the browser

Time.aspx Language="C#" Inherits=“TimePage" Src=“Time.cs" %> Time Page The time is

Time.cs using System; using System.Web.UI; public class TimePage:Page{ protected void OutputTime(){ Response.Write( DateTime.Now.ToString(“T")); }

Time Example

Web Forms Core of ASP.NET Separates interface from code logic (View / Model) ASP.NET detects browser and chooses rendering Server-side controls Can use visual tools to layout controls Similar to VB, JavaBeans, WebObjects

WebControls.aspx <asp:Calendar id="calendar" runat="server"> <asp:Button id="button" Text=“Submit" runat="server">...

Web Controls Example

XML Web Services Small, re-usable application components shared over the Web as services XML data representation HTTP transport protocol SOAP (Simple Object Access Protocol) RPC (Remote Procedure Call) standard

Network Managed Process ASP.NET Hosting the.NET Framework CLR XML Web Service objects SOAP Method Request SOAP Method Response Web Server Service-Client XML Web Services

Why use XML Web Services? Faster Development Use any.NET language XML naturally separates data from view “.NET My Services” provides core functions (user authentication, etc.) Greater Reliability Harness all the benefits of the CLR Integration Built off XML and SOAP

References Clark, Jason,.NET Tutorials, 2001 (Accessible at Microsoft Corporation, Microsoft.NET,