Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jun 29, 2006 01:29 PM by XIII
Jun 29, 2006 01:21 PM|LINK
am building a dynamic repeater to show the schedual of a radio station. the code goes like below, i need to replace i with the value of the current row.
rpdayname.DataSource = sd
i= " show contain the row number of the created repeater"
entry = Format(dv(i)("SchedualStart"),
"t") & ":" & Format(dv(i)("SchedualStart"),
"t") & " " & dv(i)("ProgramTitle") &
rpdayname.ItemTemplate = rpitem
Jun 29, 2006 01:29 PM|LINK
maybe you can use this technique: create an itemtemplate and in that place <%# Container.ItemIndex + 1 %>
I blogged about this in some more details a while ago:
Autonumbering ASP.NET grid controls.