G
Guest
I defined a session variable as an array using Session["MY_SESVAR"] = new
string[200];
Later, in my code, I need to set it and sort it.
I tried Session["MY_SESVAR"][j] = "some string";
My error is "Cannot apply indexing with [] to an expression of type 'object'.
Then, later, I try to use it, and sort on it an get 'cannot convert from
'object' to System.array.
what am I doing wrong here?
string[200];
Later, in my code, I need to set it and sort it.
I tried Session["MY_SESVAR"][j] = "some string";
My error is "Cannot apply indexing with [] to an expression of type 'object'.
Then, later, I try to use it, and sort on it an get 'cannot convert from
'object' to System.array.
what am I doing wrong here?