(Sorry if this is a re-post, don't think it worked the first time)
Hello,
I am trying to add an ArrayList as a field in my web form class.
Here is a sample:
using System;
using System.Collections;
....
ArrayList myArrayList = new ArrayList();
myArrayList.Add("Belleck Colleen Vase");
myArrayList.Add("Belinda Bradshaw Cat Bowl");
myArrayList.Add("Nicholas Mosse Cat Mug");
myArrayList.Add("Shamrock Paperweight");
myArrayList.Add("Business Card Holder");
When trying to build this web form I get the error
"Invalid tocken '(' in class, struct, or interface member declaration"
Does anyone know why I can't add an ArrayList as a field in my web form
class? I want to be able to access my ArrayList in different methods within
my web form.
Thanks