How do you store multi-dimensional array to viewstate? I am having a problem. Here's what I did:
public bool[,,] regsettings = new bool[7,5,4];
bool[,,] regsettings = (bool[,,])ViewState["regsettings"]; // this line works!
regsettings[i,j,tab] = (bool)ViewState["regsettings"]; // this line no working?! The error is: Object reference not set to an instance of an object
the letters i,j,tab are just variables in the loop. They are there.
I also tried: (bool[,,,]) as a cast and it is a no-go either.?
View Complete Post