I have a controller in my controller class called MemberController which calls a Stored Procedure in my SqlDataProvider class. This Stored procedure returns an arraylist of values. The controller contains the ArrayList GetCmteMember that refers to what the Stored Procedure returns.
I then want to call this controller in my Member class and get an item out of the array. I don't want all of the information in the array just the name. Does anyone know the syntax for this.
Here is some code in how I tried to do it but I get an error saying:
"C:\Documents and Settings\Administrator\VSWebCache\dev-myaans\DesktopModules\CmteCorner\EvtReqInfo.ascx.cs(162): Cannot implicitly convert type 'System.Collections.ArrayList' to 'aans.Member.MemberInfo'"
//Need to fill the New Request Form with the Users Information (Prefill the form)
//Get the User Contact Name
MemberController cmc = new MemberController();
MemberInfo cmi = new MemberInfo();
mi = mc.GetByCommittee(cmteId); //this method GetByCommittee is an ArrayList
this.txtName.Text = mi.ContactName.ToString();
Has anyone got any ideas, thanks in advance for all the help.