Programming the Web Using Visual Studio .NET

Slides:



Advertisements
Similar presentations
JavaScript I. JavaScript is an object oriented programming language used to add interactivity to web pages. Different from Java, even though bears some.
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
XML Why is XML so popular? –It’s flexible –It enables you to create your own documents with elements (tags) that you define Non-XML example: This is a.
Guide To UNIX Using Linux Third Edition
Chapter 3: Introducing the Microsoft.NET Framework and Visual Basic.NET Visual Basic.NET Programming: From Problem Analysis to Program Design.
ASP.NET Programming with C# and SQL Server First Edition
ASP.NET Programming with C# and SQL Server First Edition
VB .NET Programming Fundamentals
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
C++ fundamentals.
Programming Concepts MIT - AITI. Variables l A variable is a name associated with a piece of data l Variables allow you to store and manipulate data in.
Introduction to scripting
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
1 Chapter One A First Program Using C#. 2 Objectives Learn about programming tasks Learn object-oriented programming concepts Learn about the C# programming.
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
A First Program Using C#
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
JSP Java Server Pages Softsmith Infotech.
JavaScript, Fourth Edition
INTRODUCTION TO JAVASCRIPT AND DOM Internet Engineering Spring 2012.
CIS 451: ASP.NET Objects Dr. Ralph D. Westfall January, 2009.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
CPS120: Introduction to Computer Science
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
XP Tutorial 8 Adding Interactivity with ActionScript.
Chapter 3 Syntax, Errors, and Debugging Fundamentals of Java.
CNS 1120 Exam 1 Review. Programming Language Elements Syntax = the rules to follow Syntax = the rules to follow Semantics = the meaning of symbols Semantics.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 5 Creating Classes.
CSCI 3133 Programming with C Instructor: Bindra Shrestha University of Houston – Clear Lake.
CPS120: Introduction to Computer Science Variables and Constants.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
CHAPTER THREE Representing Data: Constants and Variables.
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.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
JavaScript: A short introduction Joseph Lee Created by Joseph Lee.
Representing Data: Constants and Variables
Bill Tucker Austin Community College COSC 1315
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 10 Programming Fundamentals with JavaScript
Tutorial 10 Programming with JavaScript
Introduction to the C Language
Introduction to Visual Basic 2008 Programming
Data Types, Arithmetic Operations
An Introduction to Programming and VB.NET
Scope, Objects, Strings, Numbers
JavaScript Syntax and Semantics
Programming Concepts and Languages
JavaScript: Functions.
Object-Oriented Programming: Classes and Objects
Working with Forms and Regular Expressions
MVC Framework, in general.
JavaScript an introduction.
Variables and Arithmetic Operations
Introduction to the C Language
Chapter 10 Programming Fundamentals with JavaScript
VISUAL BASIC.
Chapter 3 Introduction to Classes, Objects Methods and Strings
WEB PROGRAMMING JavaScript.
Procedural Programming
PHP.
The Data Element.
An Introduction to JavaScript
The Data Element.
Chapter 9 Introduction To Classes
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Programming the Web Using Visual Studio .NET

Introduction VS.NET permits programming in a visual environment That means developing via forms using drag-and-drop techniques Hand-coding is available also We’ll be using Visual Basic.NET

Object-Oriented Concepts Object-oriented programming Certain block of code treated as reusable objects Accept certain inputs Produce certain outputs Keep track of certain data (values) Programmer doesn’t have to know how the output is produced, only how to manipulate the object Programmer has to know what parts of an object can be manipulated by what means

Object-Oriented Concepts Properties Contain values Addressable That is, programmer has access to the property Access can be restricted Local access only Controlled “Friendly” access A known caller Global access No control – any program can access

Object-Oriented Concepts Methods Functions that the object can perform Can supply data via arguments Can return a value Don’t have to know how they work Do have to know: What do you give it (parameters) What do you get back (return value) What it changes (properties) It is a way to safely access or change properties e.g. a method could accept a request for a withdrawal from an ATM Validate the amount is between $10 and $400 before issuing the money and updating accounts

Object-Oriented Concepts Events Triggers that are activated in specific situations Affects object without user intervention Many objects are already part of the VS.NET environment You don’t have to create them, only use them You can build your own objects if you need to

Object-Oriented Concepts Objects are derived from classes Classes are basically templates Car is a class 4 wheels Engine An object is an instance of a class Creating an object is called instantiation Making a Honda is instantiating a car VIN JHMEJ854*WC123456 is a specific car

Object-Oriented Concepts Encapsulation Objects can be used without knowing what goes on inside them Inheritance New classes can be created based on base classes Each new derived class Inherits the properties and methods of the base class May have properties and methods not in the base class

Object-Oriented Concepts Polymorphism Properties and methods of both base and derived classes can have the same name and be used in the same way - or - Definitions can do different “tasks” depending on the type of data worked with This means that the output of a method may be produced by completely different internal processing methods (using the same “name”) The user doesn’t care You’ve used a type of polymorphism in JavaScript + operator In a math context it adds the numbers In a string context it concatenates the strings

.NET Structures & Languages Common Language Runtime (CLR) CLR is an intermediate state Not source Not object Makes VS.NET applications machine independent Code running within the CLR is called managed code Allows VB, C++, C# code to easily co-exist

.NET Structures & Languages Communications protocols VS.NET supports many TCP/IP is the most common HTTP FTP Necessary for networked environment Multiple computers Multiple operating systems Encoding formats ISO 8859-1 Unicode

.NET Structures & Languages VS.NET supports Visual Basic (VB.NET) C# J# (discontinued) C++ Others being added We’ll be using VB.NET It’s components are …

.NET Structures & Languages Variables Strongly typed Name begins with alphabetic character May contain alphabetic characters or digits No special characters or punctuation symbols No more than 255 characters in length Cannot match a reserved word Declaration examples: Dim SSN as String Dim salesTax, interest as Double Dim age as Integer

.NET Structures & Languages Constants Literals (simply a value): Const 19.95 Symbolic (includes name): Const TVPrice=19.95 Comments Begins with apostrophe

.NET Structures & Languages Data types Boolean Byte Char Date Double Integer Long Object Single String User-defined

.NET Structures & Languages Operators Assignment = Arithmetic + - / * ^ Relational < <= = <> >= > Like Wild cards * ?

.NET Structures & Languages Operators (cont.) Logical and or Concatenation + & Concat Result = String.Concat(Str1, Str2)

.NET Structures & Languages Control Structures If…Then…Else…End If Note: {} not needed Select…Case Do While…Loop Do…Loop While|Until… While…End While For…To…Next

Example Application What savings are needed to achieve a specific retirement goal? Variables Amount desired at retirement Amount saved each month Time until retirement Interest rate

Example Application Web page format (client or user side) Welcome page with link to a form Data entry form Results shown in browser window Could be update of current page Could be a new page Validation of input on client side JavaScript Ensure numbers are numbers Ensure data is within a valid range Etc. Processing on server side Computations (usually intensive) Retrieval of sensitive data Preparation of presentation of data

Example Application Server-side processing is a little different Web form Web page in HTML Contains a form: <form>… Form “written” in HTML on client side Sent to the client from the server Page & form start on server Contains HTML and other elements (XML) Application also includes code behind the page Web form and Code-Behind page automatically generated by VS.NET http://coit-ts2003.uncc.edu/ccui/liststreets.aspx