How do you keep the value of global variables (namely a struct variable) between postbacks?
Posted
by
user3702304
on Stack Overflow
See other posts from Stack Overflow
or by user3702304
Published on 2014-06-03T09:13:28Z
Indexed on
2014/06/03
9:24 UTC
Read the original article
Hit count: 140
I'm new to this and have already searched for this with not much luck :(
Lets say I have defined a struct array globally and filled the array with data on an Ajax ModalPopupExtender. I then have a ddl_SelectedIndexChanged event that does a postback and seems to recycle my array.
Is there a way to fire the ddl_SelectedIndexChanged event to perform some code without doing a postback? Or is there an easy way to make the array of type struct retain it's values?
(I am creating a website btw)
Thanks in advance...
© Stack Overflow or respective owner