This is a very often requirement for an ASP.NET Developer to pass a sever side array to client side and access them through java Script. There are several ways to do that. But here I am describing one of the simplest steps to pass server side array to client side. In this blog post you will get to know two things, first one is the how to pass the array from server side to client side and second one is the how to bind that array to an empty “html dropdown” list.
In below example, I have registered one array with name of “Skills”.
protected void Page_Load(object sender, EventArgs e)
// Register List of Languages
Now, what above declaration does? This is nothing but a declaration of a java script array like,
Var Skills = new Array('C#', 'VB.NET','C','C++');