R
rlm
I have a gridView with a template field that looks like this
<asp:TemplateField HeaderText="">
<ItemTemplate>
<a href="javascript:OpenHelp('<%# Eval("Status") %>')">
<img alt="Click for help." src="help\help.gif" border="0px"
width="12px"/>
</a>
</ItemTemplate>
</asp:TemplateField>
This works great in a test grid where status is actually bound to the
database. However in the real case Status is not bound but is a column
populated based on complex logic from many fields. I know the whole Eval this
is for databound stuff, but how do I pass it when it is not databound? The
"Status" column is another template field with header text = "Status".
<asp:TemplateField HeaderText="">
<ItemTemplate>
<a href="javascript:OpenHelp('<%# Eval("Status") %>')">
<img alt="Click for help." src="help\help.gif" border="0px"
width="12px"/>
</a>
</ItemTemplate>
</asp:TemplateField>
This works great in a test grid where status is actually bound to the
database. However in the real case Status is not bound but is a column
populated based on complex logic from many fields. I know the whole Eval this
is for databound stuff, but how do I pass it when it is not databound? The
"Status" column is another template field with header text = "Status".