Hi,
I am trying to load data from a webservice into a public List<> which represents a data class, i need the data available to the page, but its not always displayed .
I want to be able to
query the List<> so i can edit values also, add, delete this data
after the initial load, should i be using List or doing it another way for instance, ArrayList.
if
list is correct, is there any good examples of how go about this, as i
havent found any where i can query the list and edit values, hence i am
wondering if I am doing this correctly
{
public Guid guid_id { get; set; }
public string bubName { get; set; }
public string bubDesc { get; set; }
public int plan_id { get; set; }
public int visability_id { get; set; }
public string docLink { get; set; }
public string colour { get; set; }
public DateTime saved_datetime { get; set; }
public Guid template_pran_id { get; set; }
public int role_id { get; set; }
public string pran_type { get; set; }
public List
}
Jan MontanoPosted Feb 23, 2009, 7:51 PM
public class DataBubs
{
public Guid guid_id { get; set; }
public string bubName { get; set; }
public string bubDesc { get; set; }
public int plan_id { get; set; }
public int visability_id { get; set; }
public string docLink { get; set; }
public string colour { get; set; }
public DateTime saved_datetime { get; set; }
public Guid template_pran_id { get; set; }
public int role_id { get; set; }
public string pran_type { get; set; }
public DataBubs(string name)
{
bubName = name;
}
}
static void Test1()
{
// assuming name is unique
Dictionary
DataBubs dataBubs1 = new DataBubs("al");
dataBubs1.bubDesc = "bubs 1";
DataBubs dataBubs2 = new DataBubs("jan");
dataBubs2.bubDesc = "bubs 2";
dataBubsCollection.Add(dataBubs1.bubName, dataBubs1);
dataBubsCollection.Add(dataBubs2.bubName, dataBubs2);
Console.WriteLine(dataBubsCollection["jan"].bubDesc); // this sill return bubs 2
}