S
shapper
Hello,
I have 10 labels in different parts of a page, each one displaying a
value.
I have a class that uses Linq to retrieve all those values from a
database and places them in its properties.
I don't want to create an instance of this class on each control init
event because I will be accessing the database 10 times.
What is the more correct way to call the data function once and fill
all labels?
Should I use a custom data source. How can I do that?
Thanks,
Miguel
I have 10 labels in different parts of a page, each one displaying a
value.
I have a class that uses Linq to retrieve all those values from a
database and places them in its properties.
I don't want to create an instance of this class on each control init
event because I will be accessing the database 10 times.
What is the more correct way to call the data function once and fill
all labels?
Should I use a custom data source. How can I do that?
Thanks,
Miguel