9/24/09

Storing the questions data in the temporary array

Its obvious that before getting answers we need to store them somethere.
I did it in the beginning of users_Default Page class
//to store all the questions
private static List<cQuestion> Questions=new List<cQuestion>();



cQuestion class have all question data including all the answers(options)

The interesting thing is, that even after clicking button and raising postback event the contents of this listarray are still in memory- the consequence of static definition...

No comments:

Post a Comment

Getting started with docker

It is very simple to get started usig docker. All you need to do-is download the docker desktop for your system Once you get docker syste...