I have functions dll includet in my project and inside I have payment
function with integer parameter.
This works:
<ItemTemplate>
<%=functions.payment(1)%>
</ItemTemplate>
How can I include dataField instead of 1, something like this:
(this example doesn't work)
<ItemTemplate>
<%=functions.payment(DataBinder.Eval(Container.DataItem,"med_ID"))%>
</ItemTemplate>
Thank you,
SimonYou can use Convert.ToInt32()
e.g
<%=functions.payment(Convert.ToInt32(DataBinder.Eval(Container.DataItem,"med
_ID")))%>
</ItemTemplate>
"simon" <simon.zupan@.stud-moderna.si> wrote in message
news:OjZiabMOEHA.2468@.TK2MSFTNGP11.phx.gbl...
> I have functions dll includet in my project and inside I have payment
> function with integer parameter.
> This works:
> <ItemTemplate>
> <%=functions.payment(1)%>
> </ItemTemplate>
> How can I include dataField instead of 1, something like this:
> (this example doesn't work)
> <ItemTemplate>
> <%=functions.payment(DataBinder.Eval(Container.DataItem,"med_ID"))%>
> </ItemTemplate>
> Thank you,
> Simon
>
0 comments:
Post a Comment