R
ree32
I have a placeholder and depending on a user input(a drop downlist)
when the user clicks a button I dynamically create a number of
datagrids and fill them with data from a database. But the problem is
that on a postback I lose all the datagrids and their data.
I have looked at numerous pages on the net regarding this issue. Many
say you have to rebuild build the controls on postback. How am I meant
to do this in my situation as I don't even know the number of
datagrids that are going to be built. I also don't want to access the
database and retrieve the data on every single postback.
Is there some way to load the datagrids back?
when the user clicks a button I dynamically create a number of
datagrids and fill them with data from a database. But the problem is
that on a postback I lose all the datagrids and their data.
I have looked at numerous pages on the net regarding this issue. Many
say you have to rebuild build the controls on postback. How am I meant
to do this in my situation as I don't even know the number of
datagrids that are going to be built. I also don't want to access the
database and retrieve the data on every single postback.
Is there some way to load the datagrids back?