Page_Load not called when page is referenced again

  • Thread starter Gustavo De la Espriella
  • Start date
G

Gustavo De la Espriella

Hi,
I have an aspx page that should refresh a list containing items from a
database.
But it only refreshes the first time, after I navigate to other pages and
then return to it, it doesn't call de Page_Load proc. So changes in the list
are not reflected.

I've no idea what the problem may be, maybe it's got something to do with a
UserControl I have inserted.
Please help, here my Page_Load code
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
FillListWithItemsFromDataBase()
End If
End Sub

Thanks,

Gustavo De la Espriella
 
A

Ashish M Bhonkiya

Hi,
From your code it seems that in your page load you are checking for the
postback to call your "FillListWithItemsFromDataBase()"

Remove the following check
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top