calling a method in aspx.cs file from aspx dropdownlist
<p>I have a Serverside code in Java and client pages in .Net. Now I have to load a dropdown list in .Net from a serverside action class in Java. To do this, I created a asp dropdownlist as shown:  </p>

<pre><code>&lt;asp:DropDownList ID="invoiceYear" runat="server" OnLoad='&lt;%#GetYearRange()%&gt;'  
    Width="150px" AutoPostBack="True"&gt;
&lt;/asp:DropDownList&gt;
</code></pre>

<p>and I have a method GetYearRange in aspx.cs  as  shown: </p>

<pre><code>[WebMethod]
public static string GetYearRange()
{
    System.Diagnostics.Debug.WriteLine("I am in");
    string strNewValue = "page=" + "" + "&amp;rows=" + "" + "&amp;sort=" + "" + "&amp;order=" + ""; 
    string ss = ServerUtil.getServerString(strNewValue, "/invoice/invoice!getYearRange.action");
    System.Diagnostics.Debug.WriteLine("ss--&gt;" + ss);
    return ss;
}
</code></pre>

<p>it is not going to that method. Please advice me how would I get the results from this method into my dropdownlist??</p>
