Hey, i've created a basic get/set property method for one of my usercontrols, which takes an integer array in as a parameter, or returns it, like so:
Now i have another page where i'm using this control, and i'm having the following piece of code in my Page_Load event:
when debuggin, at the last line of the above code, the variable "mySelectedValues" has become a 2-dimensional array (with values 8 and 9), but when stepping into the .Value property set/get method, no value has been passed through.
Any ideas anyone?
Code:
public int[] Value
{
get
{
.........
}
set
{
..........
}
}
Now i have another page where i'm using this control, and i'm having the following piece of code in my Page_Load event:
Code:
int[] mySelectedValues = new int[2];
mySelectedValues[0] = 9;
mySelectedValues[1] = 8;
msTitles.Value = mySelectedValues;
when debuggin, at the last line of the above code, the variable "mySelectedValues" has become a 2-dimensional array (with values 8 and 9), but when stepping into the .Value property set/get method, no value has been passed through.
Any ideas anyone?