473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
DA.Fill(DS1,"RecordCount")
RC = DS1.Tables("RecordCount").Rows.Count
DS1.Dispose()
DA.Fill(DS2,CurrentIndex,PAGE_SIZE,"Results")
DataList1.DataSource = DS2
DataList1.DataBind

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 1151

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: New User | last post by:
I have a datasource as a xml file. I display one row at a time based on filter value. when I chage different value the datalist displays currect information on display based on filter value but...
2
by: Olav Tollefsen | last post by:
I have a Web Form with a DataList. Inside the ItemTemplate, I have a DropDownList control. <asp:DataList ID="ProductDataList" Runat="server"> <ItemTemplate> <asp:DropDownList ID="DropDownList1"...
1
by: Craig | last post by:
This is killing me, I've been trying to figure this out for 2 days. When I click on the linkbutton, it executes the GetData(int) method to set the DataSource. The FAILURE is when it tries to...
0
by: nicklang | last post by:
Say you are creating a page which contains a child control which uses a DataList or DataGrid control. In a DataList, the rows are dynamic controls and are data bound, so you have to first load the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.