ASP.NET declaring array of Controls in CodeBehind not working
<p>Hello<br>
I need to group some Dropdown lists in ASP.NET form.So I wanted to create an array of DLs at the instance level as below in the code behind file.</p>

<pre><code>DropDownList[] dls = { Dl1, Dl2, Dl3 };
</code></pre>

<p>where Dl1 etc are DropDown Lists on my form. So I get an error "A field initializer cannot reference a non static field method or property". However if I move the code inside a function it works OK. But I need to create it at instance level so multiple methods can use it.</p>

<p>Any Ideas about the best way to handle this.</p>
