Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC.

Slides:



Advertisements
Similar presentations
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Advertisements

CIM2564 Introduction to Development Frameworks 1 Overview of a Development Framework Topic 1.
ISYS 512 Business Application Design and Development with.Net David Chao.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Introduction to ASP.NET
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Rajeswari Indupuri Introduction to.NET Framework.
ISYS 350 Business Application Development
February 24 th -25 th 2004 Daragh Byrne – EPCC Additional.NET Concepts.
© 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.
1 Introduction to.NET Framework. 2.NETFramework Internet COM+ Orchestration Orchestration Windows.NET Enterprise ServersBuildingBlockServices Visual Studio.NET.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
ISYS 512 Business Application Design and Development with.Net David Chao.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
Architecture of.NET Framework .NET Framework ٭ Microsoft.NET (pronounced “dot net”) is a software component that runs on the Windows operating.
Module 1: Introduction to C# Module 2: Variables and Data Types
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
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.
.NET Framework & C#.
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.
Creating and Running Your First C# Program Svetlin Nakov Telerik Corporation
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Deploying CFML on J2EE Servers Vince Bonfanti President New Atlanta Communications, LLC.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
.NET Framework Danish Sami UG Lead.NetFoundry
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.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Programming in C#. I. Introduction C# (or C-Sharp) is a programming language. C# is used to write software that runs on the.NET Framework. Although C#
IIS 7.0 for CFML Developers Vince Bonfanti. Introduction Vince Bonfanti President and co-founder of New Atlanta Software developer by training and trade.
March 12 & 13, 2007 IIS 7.0 for CFML Developers Deploying on IIS 7.0 with Adobe ColdFusion and New.
Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
DotNet Michelle Johnston, Firebird Services Ltd. What is Dot Net Aims to simplify web development Language independent – CLR (Common Language Runtime)
The.NET Runtime and IIS Presented by Chris Dickey – cdickey.net consulting
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Module 7: Creating a Microsoft ASP.NET Web Application.
From DNA to.NET Design Path. Objectives Sketch up a typical Win DNA Application Sketch up the.NET version Compare Design and Implementation Advantages.
ISYS 350 Business Application Development David Chao.
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.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
PRIOR TO WEB SERVICES THE OTHER TECHNOLOGIES ARE:.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Presented by Vishy Grandhi.  Architecture (Week 1) ◦ Development Environments ◦ Model driven architecture ◦ Licensing and configuration  AOT (Week 2)
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.
Agenda What Is the Windows Communication Foundation? How Does It Work? How Do I Use and Deploy It? Bindings Addresses Contracts How to host WCF services.
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.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
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.
MySpace.com – One Year Later & CFML on the.NET Platform Overview Vince Bonfanti President, New Atlanta.
 Cloud Computing technology basics Platform Evolution Advantages  Microsoft Windows Azure technology basics Windows Azure – A Lap around the platform.
BlueDragon Editions and Advantages Lori Pacheco New Atlanta.
Suresh Ramachandran Duke Energy
ASP.NET Application Framework
Module 1: Getting Started
Introduction to C# AKEEL AHMED.
ASP.NET Module Subtitle.
Module 10: Implementing Managed Code in the Database
Presentation transcript:

Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC

Introduction Vince Bonfanti President and co-founder of New Atlanta –ServletExec, Java Servlet/JSP engine (1997) –JTurbo, JDBC driver for MS SQL Server (1998) –BlueDragon, CFML/JSP server (2002) Soon to be.NET-based –Mention CFUN on subject or message body

Topics What is the.NET Framework? –compare/contrast to Java What is ASP.NET? What is BlueDragon for.NET? How do we integrate CFML pages into ASP.NET web applications? Why deploy CFML on.NET servers?

.NET Framework Overview The new way to program on Windows, replacing C/C++ and Visual Basic Installed as a standard component of Windows 2003 Server, can be installed on Window NT/2000/XP Primarily useful for server-based applications, can also be used for client (desktop)

.NET Framework Goals Object-oriented, type-safe, garbage- collected, secure, etc. –Increases programmer productivity and improves application reliability, especially for complex server-based enterprise applications Similar goals as Java (without write- once-run-anywhere) –Similar methods to achieve those goals

.NET Framework Components Common Language Runtime (CLR) –like Java Virtual Machine (VM) Microsoft Intermediate Language (IL) –like Java byte code –.dll (assemblies) or.exe versus.class or.jar.NET Framework Class Libraries (FCL) –like Java class libraries Multiple programming languages –C#, Visual Basic.NET, Managed C++, J#

.NET versus Java C#VB.NETJ# … IL (CLR) Windows SolarisLinux … byte code (VM) Java WebLogicWebSphere JRun … single platform single vendor higher platform integration lower complexity lower cost multi-platform, multi-vendor lower platform integration higher complexity, higher cost

ASP.NET Overview The way to write web applications and web services in.NET Can use any.NET programming language Only runs on Microsoft IIS web server Pages are compiled (like JSP) Unique concepts –Event-driven versus top-to-bottom execution –Code-behind files to separate logic from UI –Controls are the key component technology

ASP.NET Web Applications An IIS web site or virtual directory.aspx web pages or.asmx web services Optional components –One global.asax file (like Application.cfm) –One or more web.config configuration files Inherits from machine.config –User controls in.ascx files –A /bin directory for assemblies (also GAC) HttpHandlers and HttpModules –Web content files (.htm,.css,.gif, etc.)

ASP.NET Demo Simple web page (hello.aspx) Simple web server (hello.asmx) Control and event handling (declarative.aspx) Control and event handling (codebehind.aspx, codebehind.vb)

hello.aspx Simple ASP.NET Page Sub SayHello() Response.Write( "Hello, World!" ) End Sub

hello.asmx Imports System Imports System.Web.Services Public Class Hello : Inherits WebService Public Function SayHello() As String Return( "Hello, World!" ) End Function End Class

declarative.aspx ASP.NET Declarative Example Sub Page_Load( Sender As Object, e As EventArgs ) Message.Text = "Hello, World!" End Sub

codebehind.aspx Page Language="vb" Src="codebehind.vb" Inherits="example.CodeBehind" %> ASP.NET CodeBehind Example

codebehind.vb Imports System Imports System.Web Imports System.Web.UI Imports System.Web.UI.WebControls Namespace example Public Class CodeBehind : Inherits Page Protected Message As Label Protected Sub Page_Load( Sender As Object, e As EventArgs ) Message.Text = "Hello, World!" End Sub End Class End Namespace

web.config Used to configure ASP.NET applications –Application initialization parameters –Authentication and authorization –Compilation defaults –Session data storage –Debug and trace settings Can be multiple web.config files –One per directory, inherit from parents –All inherit from machine.config

web.config <sessionState mode="InProc“ stateConnectionString="tcpip= :42424" sqlConnectionString="data source= ;user id=sa;password=" cookieless="false" timeout="20" /> <add verb="*" path="*.cfm" type="com.newatlanta.bluedragon.HttpHandler,BlueDragon"/>

HttpHandler Custom (user-defined) components (.NET objects) that process HTTP requests Can be written in any.NET language Requests are mapped to HttpHandlers via directives in web.config.aspx pages are compiled to HttpHandlers HttpHandlers are like Java servlets –JSP pages are compiled to Java servlets

HttpHandler Example using System.Web; namespace Example { public class HelloHttpHandler : IHttpHandler { public void ProcessRequest( HttpContext context ) { context.Response.Write( “Hello, World!” ); }

BlueDragon for.NET BlueDragon.NET is a CFML runtime that is implemented as an HttpHandler The BlueDragon.dll assembly can be placed either in the ASP.NET application /bin directory, or the GAC Configured via web.config or machine.config to route *.cfm page requests to BlueDragon.dll

Integrating CFML into ASP.NET Use BlueDragon.NET to deploy CFML pages in ASP.NET web applications, side-by-side with.aspx pages and.asmx web services Share Application, Session, and Request scope variables Use CFOBJECT to access.NET objects –Use ASP.NET controls in CFML pages Write CFX tags in any.NET language

BlueDragon.NET Demo BlueDragon.NET configuration Hello.cfm BlueDragon admin console ASP.NET calendar control

Why CFML on.NET? Performance –.NET CLR versus Java VM –ADO.NET versus JDBC Scalability: take advantage of Windows 2003 Server clustering Native Windows platform integration –Fast, reliable COM integration Migration to ASP.NET Another platform alternative for ISVs