Not IsPostBack

A

anonymous

I have a problem. I have a function Load_Info where I am
generating dymanic table. On a first load is it fine
however after the refresh because it is post back my table
is disappiring. can you help me fix this problem. My code
is below
If Not IsPostBack Then
Load_Info()
End If
 
E

Eliyahu Goldin

Objects in web applications are not persistent between postbacks unless you
take special care about it. The standard approach is to re-create and
re-populate your table on every postback.

Eliyahu
 
R

Ravi Gudlavalleti

Just taking out the IF condition and leaving the Load_Infor() in, wouldnt
that solve your problem?
Then the table gets loaded on matter if you are posting back or not.
Will that work?
 
E

Eliyahu Goldin

Yes, it should work.

Eliyahu

Ravi Gudlavalleti said:
Just taking out the IF condition and leaving the Load_Infor() in, wouldnt
that solve your problem?
Then the table gets loaded on matter if you are posting back or not.
Will that work?
 

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,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top