hey. i have a question for asp gurus:
i am planning to have sidebar tables at my site for "statistics, recently seen, latest classified ads, etc." and figured it would be easier to change the style if it would be contained in one subroutine.
therefore, i created this sub:
<%
sub ShowContent(type)
select case type
case stats
title = "Statistics"
text = "Please welcome our newest member:"
text = text & "blah, blah, blah"
case recentlyseen
title = "Members seen within 24 Hours"
text = "blah, blah, blah"
....................
case else
title = "Other Content"
text = "Unsupported content. Please contact the [url=admin@mysite.com]administrator[/url].
end select
response.write "<table><tr><td>" & title & "</td></tr>" & VBCRLF
response.write text & VBCRLF
response.write "</td></tr></table>" & VBCRLF
end sub
%>
now, in each of the cases, a database query will probably be used. what i want to know is if they will be called each time I call this script.
i.e.:
i plan on calling this script in inc_top:
<table><tr><td width="175">
<% ShowContent(stats) %>
<% ShowContent(recentlyseen) %>
.................
</td>
<td width="100%">
and in inc_footer:
</td></tr></table>
===================
RDoGG2k1.
===================