B
BobU
I've got a data grid that uses viewstate to maintain its state between
posts. I also have a button outside of the data grid which, when clicked, in
its server-side click event handler, sets a mode value (in viewstate) that I
want the data grid's ItemCreated handler to act on. However, the ItemCreated
event occurs before the button click event so it doesn't have the correct
mode value.
I've thought that I could set the mode value in a hidden field in
client-side script whenever the button is clicked, and the data grid's
ItemCreated event should then get the correct value. Is that the best way to
handle this type of communication?
Bob
posts. I also have a button outside of the data grid which, when clicked, in
its server-side click event handler, sets a mode value (in viewstate) that I
want the data grid's ItemCreated handler to act on. However, the ItemCreated
event occurs before the button click event so it doesn't have the correct
mode value.
I've thought that I could set the mode value in a hidden field in
client-side script whenever the button is clicked, and the data grid's
ItemCreated event should then get the correct value. Is that the best way to
handle this type of communication?
Bob