How to get the order of dynamically created DropDownLists
<p>I've created some drop down lists using JavaScript, ASP.NET. </p>

<p>A user can add as many drop down lists as he wants by clicking a "+" button and removing them by clicking a "-" button.</p>

<p>If it's hard to understand what I mean pls see " <a href="http://stackoverflow.com/questions/10101262/how-to-implement-a-list-of-dropboxes-in-c-sharp">How to implement a list of dropboxes in C#</a> ".</p>

<p>And now I'd like to implement the code behind and want to define the order of the drop down lists, but I don't know which one is my first drop down list, etc.</p>

<p>We assume that all <code>&lt;asp:DropDownList&gt;</code> contain the following for list elements: method1, method2, method3 and method4. If a user selects an element, a method in the codebehind is implemented. </p>

<p>Example:
dropboxlist1: select list item method2,<br>
dropboxlist2: select list item method1,<br>
dropboxlist3: select list item method3,  </p>

<pre><code>string txt= "";
if (dropboxlistID.Text == "method1"){
  txt = method1Imp();
} else if (dropboxlistID.Text == "method2") {
  txt = method2Imp();
} else if (dropboxlistID.Text == "method3") {
  txt = method3Imp();
} else {
}
</code></pre>

<p>But at this moment I don't have any idea which drop down lists came first and which method should be performed on my string first.</p>
