INT213 INT213 – Managing Windows with VBScript VBScript Variables ASP State Management.

Slides:



Advertisements
Similar presentations
Copyright © 2002 Pearson Education, Inc. Slide 1.
Advertisements

Chapter 1 C++ Basics. Copyright © 2006 Pearson Addison-Wesley. All rights reserved. 1-2 Learning Objectives Introduction to C++ Origins, Object-Oriented.
Chapter 31 Basic Form-Processing Techniques JavaServer Pages By Xue Bai.
Languages for Dynamic Web Documents
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
1 Today: Introduction to ASP- Part 1 Explain the client/server architecture Explain Web-based client/server applications Understand the essentials of Active.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
PHP Intro/Overview Squirrel Book pages Server-side Scripting Everything you need to know in one slide 1.Web server (with PHP “plug-in”) gets a.
1 Classic ASP vs. ASP.NET Technical Information and Market Adoption Lance Welker University of San Diego Dr. Rebman MSIT 526 December 20, 2005.
An Overview of Database Access on the Web An Overview of Database Access on the Web Using ASP and Microsoft Database Technology Sheffield Hallam University.
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
Introduction to Active Server Pages
Multiple Tiers in Action
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Basic Scripting in VBScript  VBScript must enclosed by  No HTML code is allowed inside a VBScript code block  Nested scripting block is not allowed.
Session Management A290/A590, Fall /25/2014.
Oral Presentation CSCE 330 ASP Tamiko Simmons Sherita Gee Robert Rhoden.
Lesson 16. Extensible Markup Language (XML) World Wide Web Consortium (W3C) – non-profit organizations that maintains standards for the web presented.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
CIS 451: ASP.NET Debugging and Server-Side Includes Dr. Ralph D. Westfall February, 2009.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
Dynamic Web Sites Chris North cs3724: HCI. Presentations matt ketner, sam altman, mike gordon Vote: UI Hall of Fame/Shame?
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
ASP.NET Dr. Ralph Westfall May, Web Development Problem HTML designed to display static pages only interactive when user clicks links  can’t provide.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Data-Enabled Web Sites: Classibooks.com & Internet Database Technologies Colin Fukai April 4, 2000 Gonzaga University.
3/8/00asp00 1 Active Server Pages from Microsoft Nancy McCracken Northeast Parallel Architectures Center at Syracuse.
Server Side Programming ASP1 Server Side Programming Database Integration (cont.) Internet Systems Design.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Creating Databases for Web Applications cookie examples lab time: favorites cookies & Sessions class time for group work/questions on projects Next class:
Lesson 18. CGI Setup Browser Server CGI Scripts/ Program Database Request Http reply.
ASP/ASP.NET: Tricks and Tips How to get Microsoft’s Programming Language to work for you By Wade Tripp Park University
IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
Introduction.  The scripting language most often used for client-side web development.  Influenced by many programming languages, easier for nonprogrammers.
INT213 Week 1.  A Named storage area (in RAM) that can hold a value (like a mailbox holding a letter)  Contents of a variable can be assigned, changed.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
EIW - ASP Introduction1 Active Server Pages VBScript.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
JavaScript Syntax, how to use it in a HTML document
Web Architecture Introduction
ECA 225 Applied Interactive Programming1 ECA 225 Applied Online Programming basics.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Lecture Note 8: ASP Including Files and The Global.asa file.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
Chapter 3 w Variables, constants, and calculations DIM statements - declaration temporary memory locations identifier, data type, scope data types - values.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Web Application Development with Active Server Pages David Henson
Creating Databases for Web applications Server side vs client side PHP basics Homework: Get your own versions of sending working: both html and Flash!
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
January 27, 2001ASP Basics1 Active Server Pages (ASP) Basics The client/server model Objects Forms Active Server Pages VBScript Lab and Homework.
Maintaining State in ASP. Problem - How do I maintain state information about the user  Several Methods –Cookies –Session variables –Hidden fields 
Active Server Pages v.s. Java Server Pages Presenters: Lan Guo Qunying Fan Pei-Xun Wu Date:
ASP Mr. Baha & Dr.Husam Osta  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
INT213 Active Server Pages using Visual Basic Scripting.
INT213 – WEEK 1 ASP tags and comments Variables, Constants, and "Literals" Simple Output.
Introduction to Dynamic Web Programming
Section 6.3 Server-side Scripting
ASP Explained By: Sarbjit Kaur.
The Request & Response object
Chapter 2 Interacting with the Customer
Active Server Pages Overview
What is Perl? PERL--Practical Extraction and Report Language
PHP an introduction.
A Little Bit of Active Server Pages (ASP)
Presentation transcript:

INT213 INT213 – Managing Windows with VBScript VBScript Variables ASP State Management

INT213 Week 2INT2132 Agenda VBScript Variables in VBScript ASP State Management in ASP On-Line Resources: – > Remote Access to Research Resources > Research Databases > Books 24x7 and Safari Tech Books Online

INT213 VBScript Questions: What is VBScript? Scripting vs. Compiled Languages?

INT213 VBScript Variables Questions: What is a Variable?

INT213 Week 2INT2135 VBScript Variables Dim keyword to declare variables Dim x Dim x, y, z vs. Dim x Dim y Dim z Dim x = 7 ‘ ERROR!

INT213 Week 2INT2136 Naming Variables 1.Begin with alpha: strNameSome_ThingFruit 2.Follow with alphanumeric or _ : Two_WordsTwoWordstwowords 3.Don’t use VBScript keywords 4.Keep names Short (255 or less) but Clear: 5.Names are NOT case sensitive

INT213 Week 2INT2137 Literals, Variables, Constants Literals WScript.Echo “Hello World” MsgBox #5/16/05 1:30 PM# Response.Write 3 Variables Dim x x = “INT213” WScript.Echo x Constants Const DRIVE_FULL = Const NO_DISK = x = DRIVE_FULL ‘ x = 10005

INT213 Week 2INT2138 Option Explicit Declaring Variables is optional. So why bother? lngFirst = 1 lngSecond = 2 lngThird = lngFirst + lngSecond MsgBox “Answer is “ & lngThird vs. lngFirst = 1 lngSecond = 2 lngThird = lngFirst + lgnSecond MsgBox “Answer is “ & lngThird

INT213 ASP Questions: What is ASP? How does VBScript relate to ASP?

INT213 Week 2INT21310 ASP <% Option Explicit Dim course course = “INT213” %> ASP Sample You are taking the following courses: Course : ”) Response.Write(course) Response.Write(“ ”) %>

INT213 Week 2INT21311 ASP Intrinsic Objects Response –Output to Client Request –Input from Client Server –Access properties/functions of the Web Server Session –Memory for variables associated with EACH client Application –Memory for variables associated with ALL clients

INT213 Week 2INT21312 Response Object Output to client browser Redirect client at Server Side to new page Set client Cookies (do this BEFORE …)

INT213 Week 2INT21313 Request Object Read Form Variables Read Cookie values Read Query String values Read Server Variables <% ip = _ Request.ServerVariables(“REMOTE_ADDR”) %>

INT213 Week 2INT21314 Session and Application Objects Create a Session Variable for a client Read a Session Variable for a client <% Dim chosenColour chosenColour = Session(“colour”) %> Work with Variables for ALL clients to a Web App <% Application(“cnt”) = _ Application(“cnt”) + 1 %>