Business Object Payne Ch. 15 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.

Slides:



Advertisements
Similar presentations
Programming with Objects: Class Libraries and Reusable Code.
Advertisements

ASP.NET Security MacDonald Ch. 18 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
User Controls MacDonald pp MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Introduction to the C# Programming Language for the VB Programmer.
Stored Procedures & User Defined Functions MacDonald Ch. 23 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Navigation Controls MacDonald Ch. 11 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
ASP.net – Mysteries, Myths and Truths By George W. Ponick IV – Nov. 14, 2006.
ASP.NET Programming with C# and SQL Server First Edition
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Creating & Consuming Web Services MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Web Form Fundamentals MacDonald Ch. 5 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
UNIVERSIDAD TECNOLÓGICA ECOTEC. ISO 9001:2008 Module 2 Creating Web Applications by Using Microsoft® Visual Studio 2010 and Microsoft.NET–Based Languages.
A First Program Using C#
© 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.
Introduction to .Net Framework
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
Integrating CFML with ASP.NET Vince Bonfanti President New Atlanta Communications, LLC.
Microsoft Visual Basic 2005: Reloaded Second Edition
Introduction to ASP.NET MIS 324 Professor Sandvig.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
An Object-Oriented Approach to Programming Logic and Design
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Chapter 6 Object-Oriented Java Script JavaScript, Third Edition.
MIS 424 Professor Sandvig. Overview  Why Analytics?  Two major approaches:  Server logs  Google Analytics.
Chapter 6 OOP: Creating Object-Oriented Programs Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
Module 3: Working with Components. Overview An Introduction to Key.NET Framework Development Technologies Creating a Simple.NET Framework Component Creating.
VB and C# Programming Basics. Overview Basic operations String processing Date processing Control structures Functions and subroutines.
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Object-Oriented Database Processing
Chapter 3: Creating ActiveX Controls By Noppadon Kamolvilassatian Dept. of Computer Engineering, Prince of Songkla University Source: Mastering Visual.
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 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Christopher M. Pascucci.NET Programming CodeBehind.
Crazy New CSS Tools MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
A process of taking your best guesses. Companies have web sites where you can access your information.
MIS 324 Professor Sandvig. Overview  Review ASP.NET  Preview: MIS 424  Final exam info.
Master Pages MacDonald Ch. 13 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
ASP.NET User Controls. User Controls In addition to using Web server controls in your ASP.NET Web pages, you can create your own custom, reusable controls.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
Data Listing Web Controls MacDonald Ch MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Chapter 6 Chapter 6 Server Side Programming (JSP) Part 1 1 (IS 203) WebProgramming (IS 203) Web Programming.
Variable Scope MacDonald Ch. 2-3 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Scripting Just Enough SSIS to be Dangerous. 6/13/2015 Visit the Sponsor tables to enter their end of day raffles. Turn in your completed Event Evaluation.
CPS120: Introduction to Computer Science Lecture 16A Object-Oriented Concepts.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
D OTNET ONLINE TRAINING. DOTNET Online Training Course Content : Introduction to.Net Online Training NET FUNDAMENTALS Why Dot Net? The Dot Net initiative.
MIS Professor Sandvig MIS 324 Professor Sandvig
INF230 Basics in C# Programming
C# Object Oriented Programming Concepts
1-1 Logic and Syntax A computer program is a solution to a problem.
Module 1: Getting Started
Layout and Partial Views
Social Media And Global Computing Introduction to Visual Studio
C# Object Oriented Programming Concepts
Understanding the Visual IDE
07 | Workflows Chris Johnson | SharePoint Guru
Programming Right from the Start with Visual Basic .NET 1/e
ASP.NET Module Subtitle.
Social Media And Global Computing Creating DLLs with Visual Studio
Layout and Partial Views
Who is Using your webSite?
MIS Professor Sandvig MIS 324 Professor Sandvig
Just Enough SSIS Scripting to be Dangerous.
Presentation transcript:

Business Object Payne Ch. 15 MIS 424 MIS 424 Professor Sandvig Professor Sandvig

Overview What are business objects Benefits How to Create How to use 2 examples 2 examples Usage Tips

What are Business Objects Extensions of.NET class library Create new classes Properties Properties Methods Methods Events Events Web site Presentation  User Controls Presentation  User Controls Code/logic  Business Objects Code/logic  Business Objects

Benefits of Business Objects Key element of OOP Encapsulation Encapsulation Reusability Reusability N-tier application development Compiled Protect proprietary code (sort of) Protect proprietary code (sort of) Mix & match languages.aspx pages, different components.aspx pages, different components

How to Create Steps: 1.Create new class file.vb (or.cs) extension.vb (or.cs) extension App_code directory App_code directory Contains class functionality Contains class functionality 2.Call new class from.aspx file 3.Test in VS Upload.vb and.aspx files to server

1. Creating Class file 1.Create file with.vb extension in folder App_Code 2.Import need libraries Not part of.aspx page 3.Define Namespace 4.Define class 5.Write code for the class Example: SimpleQuote.vb SimpleQuote.vb

2. Call from.aspx page Import Namespace New class is part of Application’s class library New class is part of Application’s class library Just like other classes in.NET library Just like other classes in.NET library Instantiate class Example: SimpleQuote.aspx code, output SimpleQuote.aspx code, outputcodeoutputcodeoutput

Example 2: Calculator Pass in properties Declare as public variables Declare as public variablesExample: SimpleCalculator.vb code SimpleCalculator.vb codecode SimpleCalculator.aspx code, output SimpleCalculator.aspx code, outputcodeoutputcodeoutput

Usage Tips When to Use Business Objects Subjective Subjective Opinion 1: all business logic Business Layer Business Layer Opinion 2: Only reusable code

Usage Tips Debugging No response.write in BOs No response.write in BOs Write & debug code with: VS 2005 or VS 2005 or Visual Web Developer or Visual Web Developer or Dreamweaver Dreamweaver Bugs in ANY BO can disable entire application.

Summary Goal of Business objects Encapsulation Encapsulation Reusability Reusability When to use Large programs Large programsModularity Code used > 1 Code used > 1 Web Services Web Services