dear all
i want to create Html page in the server side in aspx file (response.write("<input type = text name="tmp">") etc.... and i want also to read an array in the server side and to write it into javascript code which will be in the html which was written in the server side. how can i insert into javascript this text which was init in the serverside

var famname = new Array(3)
famname[0] = "some text that will put from sql_server - in server side"
famname[1] = "some text that will put from sql_server - in server side"
famname[2] = "some text that will put from sql_server - in server side"
document.form_name.tmp.value = famname[0];

how can i put this text in the HTML that i created in the server side.

in general my goal is to read data from SQL_server - and transform this data into a javascript that manipulate the data in the client sede

a demo which reads a string from the server and put it in javascript whice executes in the client side will be very good for me
thanks alot