Yes you can do this I assume that u have a method in code behind which returns string, write a logic to return string in following format Vaue1, value2, value3 SERVER Method(code behind): public string GetCommaSepratedUserNames() { //write u r logic here, instead of my sample return "'Manikandan.net, Prem.telecom, someName.Asp'"; } Here value1, value2, value3 are your desired values, which u want to return from server. Write the java script like bellow: <script> var customarray=new Array(<%=GetCommaSepratedUserNames()%>); var custom2 = new Array('something','randomly','different'); </script>
Manikandan.net [Coding is life]