Populating JScript Array for reuse on SELECTs
<p>Forgive me if this is already 'somewhere' on StackOverflow, but I don't 100% know exactly what it would come under...</p>

<p>I'm trying to retrieve information from a WebService, store this in an array, and then for each <code>&lt;select&gt;</code> within my ASP.Net Datalist, populate it with the array AND have binding attached to an OnChange event.</p>

<p>In other words, I have an array which contains "Yes, No, Maybe"
I've an ASP.Net Datalist with ten items, therefore I'd have 10 <code>&lt;Select&gt;</code>s each one having "Yes, No, Maybe" as a selectable item.
When the user changes one of those <code>&lt;Select&gt;</code>s, an event is fired for me to write back to the database.</p>

<p>I know I can use the [ID=^ but don't know how to:</p>

<p>a) Get the page to populate the <code>&lt;Select&gt;</code> as it's created with the array
b) Assign a Change function per <code>&lt;Select&gt;</code> so I can write back (the writing back I can do easy, it's just binding the event).</p>

<p>Any thoughts on this?</p>
