Library code snippets
ASP Fractal
HTML Output
ASP Code
<%
Dim depth,color,size
depth=5
size=1
color="blue"
Call DrawFractal (depth)
Sub DrawFractal (depth)
%>
<table border= "0" cellpadding= "0" cellspacing= "0"><tr><td>
<% Call Iterate (depth) %>
</td></tr><tr><td>
<% Call Iterate (depth) %>
</td><td>
<% Call Iterate (depth) %>
</td></tr></table>
<%
End Sub
Sub Iterate (depth)
If depth > 0 Then
Call DrawFractal (depth-1)
Else
Response.Write "<table cellpadding=""0"" cellspacing=""0"" " & _
" border=""0"" height="""& size &""" width="""& size &""">" & _
"<tr><td bgcolor="""& color &"""></td></tr></table>"
End If
End Sub
%>
Related articles
Related discussion
-
Calling a function from ASP code
by dunk00 (3 replies)
-
GridView HyperLinkField Problem
by Paul2 (0 replies)
-
looking for help on asp
by cladironbeard (2 replies)
-
simple vb to c#, help please
by lksath (1 replies)
-
Binary Studio | software development outsourcing Ukraine
by Hexfinity (2 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
Events coming up
-
Aug
27
Model-View-Presenter (MVC) in ASP.NET
San Francisco, United States
Model-View-Presenter (MVC) in ASP.NET Presenter Clayton Peddy, Terrace Software, Inc. Details TBD
This thread is for discussions of ASP Fractal.