Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
390
ig:TemplateDataField formatting a <asp:HyperLink> with grid data
posted

to all --

i apologize for this simple question ... but am new to NetAdv 11 and ASp.NET. I have a data grid which i need to add a hyperlink to ...i forrest gumped my way though most of it - but i cannot pass the ordernumber to the id querystring:

<ig:TemplateDataField Key="OrderNumber">
<ItemTemplate>
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='/bim/ListLocations.aspx?id=<%# Eval("OrderNumber") %>'
Text="find bundles"
target="_blank">
</asp:HyperLink>
</ItemTemplate>
</ig:TemplateDataField>

when i hover over the resulting link in the grid - this is what displays:

http://devWebsite.somedomain.com/bim/ListLocations.aspx?id=<% # Eval("OrderNumber") %>

instead of what i thought it would be:

http://devWebsite.somedomain.com/bim/ListLocations.aspx?id=12345 (where 12345 is the ordernumber)

any help would be appreciated.

thanks,

e