I'm using @RenderPage passing an array:
@RenderPage("/Shared/_ScopeFormControls.cshtml", ChangeScope)
The array is declared and set initially as:
string[,] ChangeScope = { { "True" }, { "" }, { "" } };
The receiving page deconstructs the array into variables to use in its own if statements:
string[,] ChangeScope = PageData[0];
var isValid = ChangeScope[0,0];
var InvsOut = ChangeScope[1,0];
var ItemsToMoveIDs = ChangeScope[2,0];
That all works fine when the page is first loaded.
I'd like to reset the content of the array inside the if (IsPost) dependent on a bunch of if statements then the Renderpage would be recalled with the new values.
Basically I'd like to use the array like a normal variable and overwrite its existing content with new content, something like:
ChangeScope = { { "True" }, { "IntoScope" }, { ItemsToMoveIDs } };
Is this possible?