By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,583 Members | 1,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,583 IT Pros & Developers. It's quick & easy.

Parameter in function

P: n/a
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.Dat aItem,"med_ID"))%>
</ItemTemplate>

Thank you,
Simon
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can use Convert.ToInt32()

e.g
<%=functions.payment(Convert.ToInt32(DataBinder.Ev al(Container.DataItem,"med
_ID")))%>
</ItemTemplate>

"simon" <si*********@stud-moderna.si> wrote in message
news:Oj**************@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.Dat aItem,"med_ID"))%>
</ItemTemplate>

Thank you,
Simon

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.