It's pretty safe to ignore my comment. Without knowing more about your
system, I can only guess. It just _seems_ like presentation rules (ie, show
this button or not) are being decided by something other than the
presentation layer. But that could be a totally inaccurate view.
Karl
--
http://www.openmymind.net/
http://www.fuelindustries.com/
<> wrote in message
news: oups.com...
> Karl,
>
> This will work for me and thanks for your help.
>
> I am not sure if I understand your "side note". Please explain.
>
> -Sydney
>
>
> Karl Seguin [MVP] wrote:
>> Yes.
>>
>> There's no good reason NOT to hook into an event, but yes it's possible.
>> There are different ways, but:
>>
>> <asp:linkbutton id="whatever" runat="server" visible='<%#
>> DataBinder.Eval(Container.DataItem, "CreateLinkButton") = "Y" %>' />
>>
>> on a side note, if your data layer is concernnig itself with a column
>> named
>> "CreateLinkButton", I'd suggest your layers are bleeding into each other.
>>
>> Karl
>>
>> --
>> http://www.openmymind.net/
>> http://www.fuelindustries.com/
>>
>>
>> <> wrote in message
>> news: oups.com...
>> > 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>
>> >
>