Variable inside of the markup for an asp:HyperLink NavigationUrl property?
- by RichAmberale
Hi,
I'm new to ASP.NET and can't figure out how to accomplish this...
My code (that needs fixing):
<asp:HyperLink runat="server"
NavigateUrl="~/EditReport.aspx?featureId=<%= featureId %>"
ImageUrl="~/new.gif" />
featureId gets defined as an integer in the backing code. I want href's like...
/EditReport.aspx?featureId=2224
...but instead I am getting...
/EditReport.aspx?featureId=<%= featureId %>