Asp > HTML Formatting
Yet another Table coloring
Yet another Table coloring <% 'The const's are For the colors and the Flag is needed Const sPrimaryColor = "WHITE" Const sSecondaryColor = "YELLOW" Dim bColorFlag Dim lCounter 'This function does all the work For you. Function LineColor() bColorFlag = Not bColorFlag If bColorFlag Then LineColor = sPrimaryColor Else LineColor = sSecondaryColor End If End Function %>
Alternating Line Colors
<% For lCounter = 1 To 10 Response.Write("
" & vbCrLf) Response.Write("
" & lCounter & "
" & vbCrLf) Response.Write("
" & vbCrLf) Next %>
Asp Codes
ActiveX
ADO
Array
Code Snippets
Components
Data Access
Date Time
Files
Graphics
HTML Formatting
Mathematics
Miscellaneous
Sessions
SQL
Strings
Techniques
XML