Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retaining Database Values?

Status
Not open for further replies.

jl280328

Programmer
Jun 15, 2006
97
US
Right now I am using the following code to retain information from a single record from a database:
Code:
for (fieldname=0; fieldname<=SQLReader.FieldCount - 1; fieldname++)
						{
							Session[SQLReader.GetName(fieldname)] = SQLReader[fieldname];
						}

as you can see I am setting each database value to a Session object with the database field as its name. Is there a better way to store these values throughout the life of the Session rather than just setting each one to a separate Session variable?
 
Yes, hence why I asked you a question in thread855-1329532.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top