S
sydney.luu
Hello,
See part of the code shown below. I would like to know, without
hooking to an event
called ContentRepeater_ItemDataBound, is it possible to evaluate this
databinding expression
and based on the condition, create a LinkButton immediately follows
this data and before
this <TD> ends? Basically, how I can code it to say:
If DataBinder.Eval(Container.DataItem, "CreateLinkButton") = "Y" Then
<ASP:LinkButton ....................>
End If
Thanks for the help!
Sydney
<asp:Repeater id="ContentRepeater" runat="server"
EnableViewState="False"
OnItemDataBound="ContentRepeater_ItemDataBound">
<ItemTemplate>
<tr id="TableRow" runat="server" bgcolor="#FFFFFF">
<td> <%# DataBinder.Eval(Container.DataItem,
"CreateLinkButton") %></td>
See part of the code shown below. I would like to know, without
hooking to an event
called ContentRepeater_ItemDataBound, is it possible to evaluate this
databinding expression
and based on the condition, create a LinkButton immediately follows
this data and before
this <TD> ends? Basically, how I can code it to say:
If DataBinder.Eval(Container.DataItem, "CreateLinkButton") = "Y" Then
<ASP:LinkButton ....................>
End If
Thanks for the help!
Sydney
<asp:Repeater id="ContentRepeater" runat="server"
EnableViewState="False"
OnItemDataBound="ContentRepeater_ItemDataBound">
<ItemTemplate>
<tr id="TableRow" runat="server" bgcolor="#FFFFFF">
<td> <%# DataBinder.Eval(Container.DataItem,
"CreateLinkButton") %></td>