Hello
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.
DropDownList[] dls = { Dl1, Dl2, Dl3 };
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.
Any Ideas about the best way to handle this.