ASP Variables


ASP Variables

Variables can be declared in VBScript via the key word DIM. Variables do not have a specific type, but is considered as universal (or known as a variable in Visual Basic).
<% DIM I DIM NAME DIM ADDRESS I = 350 Name = "Top HTML" Address = "http://tophtml.blogspot.com" <HTML> The value of the variable I is <% Response. Write (I)%> <% Response.Write (name) Response.Write (address) %> </ HTML>
VBScript can also simplify response.write with the sign "=", so it can be displayed as follows:
<HTML> I Variable Value is <% = I%> <% = Name + "<BR>" = Address + "<BR>" %> </ HTML>
 
The symbol + is used to add strings. In this case <BR> give separator (new line).

0 comments:

Post a Comment