I have an asp:DataGrid
with templated columns. Here's one of those columns:
<asp:TemplateColumn>
<ItemTemplate>
<asp:LinkButton ID="btnDetails"
Runat="server"
CommandName="details"
Text="Details"
Font-Size="0.8em"
CommandArgument='a=<%# Eval("a")%>&b=<%# Eval("b")%>' />
<...>
When the command fires, the CommandArgument
comes back unevaluated - it is the string a=<%# Eval("a")%>&b=<%# Eval("b")%>
, not a=5&b=6
as I want.
What's wrong with how I'm doing this?