BrockLesnar
01-17-2005, 10:54 PM
I have a Repeater Control with a Label in the <SeperatorTemplate> of the Repeater.
I want to set the text in the label at runtime. How do I do this?
What I have so far
Sub rp2_ItemCreated(Sender As Object, e As RepeaterItemEventArgs)
dim b as label
t = left(DataBinder.Eval(e.Item.DataItem, "Title"),1)
if not prev = t then
b = (CType(e.Item.FindControl("lbl_linkstarter"), Label)) <--This retrieves the text from the label in the repeater
prev = t
end if
end sub
Now that retrieves the text, but how do i set the text?
Iam very new to repeaters and stuff so go easy on me hehe=)
I want to set the text in the label at runtime. How do I do this?
What I have so far
Sub rp2_ItemCreated(Sender As Object, e As RepeaterItemEventArgs)
dim b as label
t = left(DataBinder.Eval(e.Item.DataItem, "Title"),1)
if not prev = t then
b = (CType(e.Item.FindControl("lbl_linkstarter"), Label)) <--This retrieves the text from the label in the repeater
prev = t
end if
end sub
Now that retrieves the text, but how do i set the text?
Iam very new to repeaters and stuff so go easy on me hehe=)