I am relatively new to ASP.NET although I've worked with win forms a lot.
In ASP.NET let's say you have a couple of private member variables and in the button click even you need to use these variables.
The postback is done before the handler gets called i.e. the variables are empty at the time you need them in the click event!!!
How can I manage this if the variables ARE NOT simple types like numbers and ints i.e. what if they are datatables, datasets, IList<> etc ...
For example I had the case where i had a datatable (and an IList<T> in another case) that I used as a datasource to a GridView. When the user clicked a row on the GridView I grabed the ID of that row and used it to find the correct row in the dataTable and do some processing ... but the datatable was NULL by the time I got to it!
So what's your adivce/best practises/url's on managing this?
Thanks a million