How to prevent loading data from database more than once?

A

antonyliu2002

I load data from a database to populate a ListBox in Page_Load in my VB
script.

Apparently, each time the page is visited the ListBox gets repopulated.

How do I stop it from connecting to the database and obtaining the data
to populate the list box if the list box is already populated?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top