Simple,
<% depicts the opening of server side code %> is the end of server side code
.... of course this
<%@ Language="VBSCRIPT" %>
defines the language of the ASP page and must be at the top of the page (but not under .net(u can have multiple instances with .net))
<SCRIPT LANGUAGE="VBSCRIPT> here </SCRIPT>
is client side
(y would any1 want to use vbscript in a web browser? Javascript is much better there....
to chop and change between the 2 modes (client server) u just use <% and %>
eg (sorry this example is in jscipt, but for the sake of showing client/server integration, it is exactly the same
<%@ Language="JScript" %>
<%
%>
<HTML>
<HEAD>
<TITLE>CSV to graphics</TITLE>
</HEAD>
<BODY>
<%
// need to set key word searches and the location within the arrray.....in other
// words the column number minus 1 (it is an javascript array after all)
$location =2
z=0;
$key_words = new Array()
$key_words[0]="approve";
$key_words[1]="cleared";
// of course some kind of counting system must be added and set to 0
$key_words_score = new Array()
$key_words_score[0]=0;
$key_words_score[1]=0;
var $data;
var data_array = new Array();
fso = new ActiveXObject("Scripting.FileSystemObject");
$doc="C:/Inetpub/wwwroot/csv/dummy.csv"
file = fso.OpenTextFile($doc, 1, true);
while (!file.AtEndOfStream)
{
$data=file.ReadLine();
data_array = $data.split(",");
i=0;
while (i!= $key_words.length)
{
if(data_array[$location].search($key_words[i])!=-1){$key_words_score[i]+=1}
i++
}
z++;
}
i=0;
total=0;
graphic_data="height=400&width=500&label=y&legend= y&3d=y";
while (i!= $key_words.length)
{
graphic_data+="&"+$key_words[i]+"="+$key_words_score[i]
total+=$key_words_score[i]
i++
}
graphic_data+="&Unaccountable="+(z-total)
%>
<br><br>
<table width=100% cellpadding=5 cellspacing=5 border=0 ID="Table1">
<tr><td><img id="graph" name="graph" src="graphics/bar.ashx?<%=graphic_data%>"></td></tr>
<tr><td><img id="Img1" name="graph" src="graphics/plot.ashx?<%=graphic_data%>"></td></tr>
<tr><td><img id="Img2" name="graph" src="graphics/pie.ashx?<%=graphic_data%>"></td></tr>
<tr><td><img id="Img3" name="graph" src="graphics/piethreed.ashx?<%=graphic_data%>"></td></tr>
</table>
<%
file.Close();
%>
</body>
</html>
What is the difference between declaring VBScript in <% here %> and <SCRIPT LANGUAGE="VBSCRIPT> here </SCRIPT> ??
Hope that answers a few more questions, if not u can email me at
jack_ed_ripper@hotmail.com 
I can't tell but I get differing degrees of success when I code with either of them. [/SIZE][/QUOTE]