How to prevent loading data from database more than once?

  • Thread starter Thread starter antonyliu2002
  • Start date Start date
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

Back
Top