<%$ with <%#
I can't seem to get databinding to work well on my site for a <asp:Hyperlink> control in a <asp:TemplateField> in a <asp:GridView>. I want to specify a link in a new admin page I'm building that will redirect the user to [adminpage]/newproducts.aspx?productid=[productid]. So I would think that I would use something like:
Code:
NavigateUrl='<%$ Tokens:AdminLink, newproducts.aspx?productid=%><%# Eval("ProductID") %>'
However, it appears that the code for <%$ greedly grabs everything until the last %> which means that <%# Eval("ProductID") %> never gets evaluated.
Does anyone have any idea how to solve this problem? Or is this a bug in how the directives for the ASPDNSF-Customer <%$ %> parser parses the <% %> code?
Thanks.
ML9.3.1.1
SQL 2012 Express
VS 2010
Azure VM