Getting an item from the array
Dear all
I have created an array that contains lots of items, and one of them is a PageID. During the process of the form, I am populating it with data.
Now i wish to retreive an item in the array, whereby the PageID is the one I am working with.
I have the following code:-
this.PageID = System.Convert.ToInt32(e.CommandArgument);
ViewState["PageID"] = this.PageID;
ArrayList _pageArr = new ArrayList();
_pageArr = (ArrayList)Cache["PageItem"];
PageItem _pageItem = new PageItem();
_pageItem = (PageItem)_pageArr[.....];
My problem is, what shall I insert in the [square brackets]?
Thanks for your help
Johann
|