KidsLovePC Contact Us
  Home   PHP  Graphics ASP  JavaScript   J2EE  HTML  JAVA   Swing   Webtip  Forums  Lyric  Free sheet music  Ringtones

using If -then_else construct

This example will pass month and location to the response form which will utilize if-then-else constructs to determine what to print based on the month and location

<title> Baseball field</title>
<h1>BaseBall Information</h1>
<h3>To get the logistics information for your game please answer two questions:</h3>
<form action="IfThenAction.asp" method="post">
Please choose your preference in month, either March or April:<br>
<input type="text" Name="monthpref"><p>
Please input your preference in location, either East or West<br>
<input type="text" name="location">
<input type="submit"><input type="reset">


<title> Baseball field schedule</title>
Get he month and location from the Form and save in varMonthPref and VarLocation variables.
<% Response.Write "<h1> Baseball scheduling for your choice</h1>"

if varMonthPref="March" then
Response.write "Your game will be held on March 15th"
response.write "Your game will be held on April 16th"
end if


if the month is march, then write out game will be held on March 15th, otherwise print out that game will be held on April 16th
if varLocation="East" then
response.write "in White Hall, New Mexico"
response.write "In Pullman, Idaho"
end if

ASP tutorial
What is ASP
Install IIS
VBScript or JScript
ClientSide vs ServerSide scripting
ASP execution order
Dealing with Form
More Form example
Variable &Variant
Local variable
Global variable
Use if_then_else
Use Select Case
For_Next loop
Do_while loop
Subroutine vs Function
Request Object
Count Keyword
Using QueryString
Application, Method, Events
Create Virtual Directory
Save array in Application
Session, Method, Events
Using Cookie
Server Object
Ad Rotator
Content Linker
Dictionary object
Filesystemobject Object




Best books about ASP & ASP.Net from Amazon
Beginning Dynamic Websites : with ASP.NET Web Matrix (Programmer to Programmer) (Paperback) Build Your Own ASP.NET Website Using C# & VB.NET (Build Your Own) (Paperback) Professional Active Server Pages 3.0 (Programmer to Programmer) (Paperback) ASP.NET Cookbook (Paperback) ASP.NET Kick Start (Paperback)


Printer Inkjet A Z lyricsLearn ChineseHome|PHP|Swing|HTML|JavaScript|ASP|JAVA|Forum|WebTip|Contact Us
Copyright © All rights reserved(new). Privacy|Copyright
designed by

Please help us cover the web site maintenance fee.
barcode scanner Thermal Printer credit card machine bar code printer