P
Peter Kirk
Hi
I have an ascx: a web page + code behind. In the code behind I generate
several lists (generated from a database) which are displayed on the page.
When a user clicks on an item from one of the lists I have to perform a new
database search, and present another page.
One question is, is the "code behind" instance associated with a particular
browser session? That is, is it safe to have "global variables" in the code
behind. Actually as I write this I guess it must be, because the GUI
controls on the page are global and maintain their state unaffected by other
browser sessions.
Another question is, when the user clicks on an item in one of the lists,
and thereby comes to another page with other data, I would like to keep the
data from the particular list he clicks on (without having to fetch the list
data again from the database). Is it possible to pass a list to another
"ascx"?
Thanks,
Peter
I have an ascx: a web page + code behind. In the code behind I generate
several lists (generated from a database) which are displayed on the page.
When a user clicks on an item from one of the lists I have to perform a new
database search, and present another page.
One question is, is the "code behind" instance associated with a particular
browser session? That is, is it safe to have "global variables" in the code
behind. Actually as I write this I guess it must be, because the GUI
controls on the page are global and maintain their state unaffected by other
browser sessions.
Another question is, when the user clicks on an item in one of the lists,
and thereby comes to another page with other data, I would like to keep the
data from the particular list he clicks on (without having to fetch the list
data again from the database). Is it possible to pass a list to another
"ascx"?
Thanks,
Peter