pass parm from daatagrid row to code behind

M

mcnewsxp

what is the syntax for this? Neither of my examples work.

<EditItemTemplate>
<asp:DropDownList ID="ddlUNITS1"
DataSource="<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString()) %>"

DataSource="<%# BindDropDownUnits(Eval(txtTOTALMINUTES).ToString()) %>"
 
M

mcnewsxp

what is the syntax for this? Neither of my examples work.



<EditItemTemplate>

<asp:DropDownList ID="ddlUNITS1"

DataSource="<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString()) %>"



DataSource="<%# BindDropDownUnits(Eval(txtTOTALMINUTES).ToString()) %>"

got it:

DataSource='<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString())%>'
 
M

mcnewsxp

this works - not the one i posted a second ago.

DataSource='<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString())%>'
 
J

Jeff Johnson

this works - not the one i posted a second ago.

"This one":
DataSource='<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString())%>'

"The one you posted a second ago":
DataSource='<%# BindDropDownUnits(Eval("ATT_TOTAL_MINUTES").ToString())%>'

They are identical, so they should BOTH work....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top