470,575 Members | 1,645 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,575 developers. It's quick & easy.

Databind DataList Display Problem

I have a website that performs a search on an indexing service and returns
the results. During the initial load, I get the recordcount through a DS,
then bind a DataList using a second DS with page count of 20.

This site executes successfully on my local machine and indexing service.
When ran on the intended server, the app retrieves the record count, then
binds the data in the 2nd DS, but doesn't display the records bound to the
DataList. When a user goes to the 2nd page, the results will display. If I
remove the initial recordcount DS, the results are displayed fine. The code
is simple and is abbr below:

Dim CN as New OleDB.Connection("Provider=MSIDXS.1;Data Source=HDSN-Standard")
Dim DA as New OleDBDataAdapter("Select filename From Scope()",CN)
Dim RC as Integer = 0

Dim DS1 as New DataSet
Dim DS2 as New DataSet
RC = DS1.Tables("RecordCount").Rows.Count
DataList1.DataSource = DS2

I simplified the code, but it works in full on my local machine, but not on
the initial search on the server. In order to start viewing the results on
the server, you must proceed to another page. At that time, you can then go
back to the first page to view results 1 - 20.

I've tried placing code in classes, seperate functions returned by Booleans,
time delays, but nothing works. It almost looks like the code runs to quick
for the data to bind, but if I take out the DS1, it all works fine.

Please help with ideas.

Nov 19 '05 #1
0 1039

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.