I have a problem with displaying data from a repeater where the data has to
be converted in a function. The repeater with PagedDataSource works fine and
all data is displayed except the columns where the function is executed.
sample of html code
<tr>
<td width="150">Delprosjekt</td>
<td><%#getvalue(container.itemindex,"DelProsjekt") %></td>
</tr>
sample code behind function
Public Function getValue(ByVal value As Int32, ByVal strColumn As
String) As String
Dim strValue As String
strValue =
DsBilder1.Tables("Bilder").Rows(value).Item(strCol umn).ToString
If strValue = "" Then strValue = " "
getValue = strValue
End Function
I know this only works on the first page because the itemindex is correct in
the PagedDataSource and the Dataset. The problem araise in page 2 and up.
I just dont know how i can read the correct row based on the itemindex
returned from the binded PagedDataSource.
Should i read the data from the PagedData or from the Dataset? If so how do
i read this from the PagedData?
TIA
--
Roy