Store values from datareader
Posted on 2008-06-12
I have a series of values (eg. LatestTitle, Author, WhereAvailable) stored in a table (which will only ever contain a single record). This will be read when the page first loads and be dispalyed appropriately.
My idea is to use a DataReader to retrieve the values and store them in AspHyperlink, AspLabel and ASPTextBox.
1. Is the DataReader the best way to go for this (assuming that the data won't change)?
2. Am I correct in saying that the fields, once populated, will retain their values during PostBAck?
In advance, thanks!