Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with data display

Status
Not open for further replies.

g2000

Programmer
Aug 31, 2005
39
US
I was told to put the databind(access) code inside
if (!Page.IsPostBack) { ..... } because that saves the data for selecting an item.

But if I did that, I would lose all data (nothing shows up) if I sort / get to another page afterwards.

Simply speaking, is it necessary to use datasource object?
 
You need to grab the data each time the the page is posted back, IE on a sort or page event. Otherwise you are binding to a DataSet that has no data in it.

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top