It simply says invalid cast....doesn't even give a line number...
What's funny is this works perfectly with one dimension arrays. Only
with two dimensions and more it gives this error.
I have circumvented this problem by using two one dimension arrays for
now.
But still wondering if there is a technical reason behind it.
Thanks...
"Damon Payne" <da***@damonpayne.com> wrote in message news:<Js*****************@twister.rdc-kc.rr.com>...
This doesn't sound like something to put into the viewstate. Does it advise
you to implement a type converter? You could try going that route,
implement a type converter to string-ify your array...
"Gopal Krish" <ge*****@yahoo.com> wrote in message
news:8b**************************@posting.google.c om... Folks,
How to add an array to a ViewState in C#?
I'm doing the following and .net does not likes it.
ViewState["HeadingArray"] = HeadingArray;
where HeadingArray is a two dimensional array.
Any thoughts is really appreciated. thanks....
I also tried
ViewState["HeadingArray"] = (object) HeadingArray;
but no use..it still throws error.