Repeater and Datalist problem

S

SandpointGuy

I have a 2.0 web page with a datalist and a repeater control. The values
in the datalist are populated from a dataset; if one of them is clicked
the repeater is populated (from a differently named dataset) with the value
from the clicked item. The repeater is quite simple, consisting of 2
asp:labels.
Works fine when one of the items in the datalist control is clicked.

The problem Im having is how values are displayed in the repeater on the
initial
load of the page. In the Page_Load where IsPostBack=false, Im populating the
repeater's dataset with the same method that occurs when the first datalist
item
is clicked.
What Im seeing is that 1. one of the labels is populated with values displayed
in the datalist control, 2. the other label is populated with the first value
in the dataset created for the repeater.

I just cannot determine why this is happening. Any help would be
greatly appreciated. Thanks!
 

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,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top