DISPLAYING ON THE SCREEN - PowerPoint PPT Presentation

1 / 13
About This Presentation
Title:

DISPLAYING ON THE SCREEN

Description:

THE ASP.NET FORMAT. SIMPLE HTML CODE. ASP FORMAT. ASPNET STRUCTURE. SCRIPT ... (p.57): Whenever ASP.NET loads up a page, it executes any code contained within ... – PowerPoint PPT presentation

Number of Views:32
Avg rating:3.0/5.0
Slides: 14
Provided by: facultyBu1
Category:
Tags: displaying | screen | the | asp | net

less

Transcript and Presenter's Notes

Title: DISPLAYING ON THE SCREEN


1
DISPLAYING ON THE SCREEN
2
THREE WAYS
  • SIMPLE HTML CODE
  • THE ASP FORMAT
  • HTML WITH VB EMBEDDED
  • THE ASP.NET FORMAT

3
SIMPLE HTML CODE
4
ASP FORMAT
5
ASPNET STRUCTURE
  • SCRIPT TAGS
  • INDICATE LANGUAGE
  • MANY LANGUAGES POSSIBLE
  • VB, JAVA, C
  • RUNAT
  • THE CODE IS BEING RUN ON THE SERVER
  • SCRIPT TAG MUST BE CLOSED
  • lt/SCRIPTgt

6
  • SUB PAGE_LOAD ( )
  • THIS IS EXECUTED FIRST
  • NEEDS
  • END SUB

7
SEQUENCE
  • (p.57) Whenever ASP.NET loads up a page, it
    executes any code contained within the Page_Load(
    ) subroutine first.
  • The web server scans the file to see if there is
    a ltscript runat servergt tag. If there, it is
    processed first.

8
SOME EXAMPLES IN SEQUENCING
9
DECLARATIONS
  • (p.92)DIM
  • NAME OF VARIABLE IS ESTABLISHED
  • SPACE ALLOCATED IN MEMORY
  • UNTIL VALUE ASSIGNED, VARIABLE CONTAINS NOTHING
  • USE VB FUNCTION
  • ISNOTHING (VARNAME) TO CHECK IF VARIABLE HAS
    VALUE
  • WILL RETURN TRUE OR FALSE, NOT VALUE

10
NAMING A VARIABLE
  • (p. 92)
  • RULES FOR NAMING A VARIABLE
  • MUST BEGIN WITH LETTER (NOT NUMBER OF SYMBOL)
  • MAY NOT CONTAIN EMBEDDED PERIOD OR SPACE
  • CANNOT USE VB.NET KEYWORDS (RESERVED WORDS)

11
  • Dim strStudentName as String
  • Dim strStName, strStStatus as String
  • Dim strStName as String Joe

12
DATA TYPES (p. 95)
  • Numeric
  • Integer (whole numbers only)
  • Byte (0 to 255)
  • Short (/- 32768)
  • Long (/- 9 x 1019)
  • Single (floating point numbers)
  • Double
  • Decimal
  • String
  • Char
  • Date
  • Boolean

13
VARIABLE NAMING CONVENTIONS
  • P. 99 and 100
  • blnMember
  • BytDaysInMonth
  • CharWang
  • datDateOfBirth
  • intAge
  • strNameFirst
Write a Comment
User Comments (0)
About PowerShow.com