G
Guest
Hi I am setting a boolean value to true on a page and writing the results to viewstate
Just above the web form designer generated code I have
Dim bps_found As Boolean 'visible to this module
in a button click event I have
bps_found=true
ViewState("ps_found") = bps_found 'save value in viewstate
then a redirect to another page, passing string information.
in the page load I have
bps_found = ViewState("ps_found") 'get value from viewstate
I put a break point in the page load and noticed after the click event when
renavigating to the page the value always stays false, when it should be true.
Thanks
Just above the web form designer generated code I have
Dim bps_found As Boolean 'visible to this module
in a button click event I have
bps_found=true
ViewState("ps_found") = bps_found 'save value in viewstate
then a redirect to another page, passing string information.
in the page load I have
bps_found = ViewState("ps_found") 'get value from viewstate
I put a break point in the page load and noticed after the click event when
renavigating to the page the value always stays false, when it should be true.
Thanks