How to use the ASP program to make decision
S T E P - 1
- Now, we make a simple ASP program to show some text in random:
<%
Randomize
intChoice = Int(Rnd *4) 'Get a random value, the range is 0 - 3
%>
S T E P - 2
- We based on the value generated by the system to display the different text.
<%
Select Case intChoice
Case 0
Response.write("Hello")
Case 1
Response.write("Welcome")
Case 2
Response.write("Hello and Welcome")
End Select
%>
No comments:
Post a Comment