To acheive this do as follows:-
- Prepare the string of values seperated by commas, say string ArrayString = 'Hythem', 'Apple','Banana'
- Create the array while passing the values to the javascript
See the code below:-
string ArrayString = 'Hythem', 'Apple','Banana';
ntxtAmt.Attributes.Add("onkeyup", "javascript:testme(new Array(" + ArrayString + ");");
-::-