Page_Load not called when page is referenced again

  • Thread starter Thread starter Gustavo De la Espriella
  • Start date 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
 
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


Back
Top