What is the correct syntax to add a Eval() function to the NavigateURL attribute of asp:HyperLink?
I am trying to achieve the below:
NavigateUrl=\"http:/
It wasn't works my site. I found the following solution:
NavigateUrl='<%# string.Format("~/Home.aspx?{0}", HttpUtility.UrlEncode(Eval("U_ID").ToString())) %>'
Try with this
NavigateUrl='http://home/?<%# Eval("U_ID") %>'
or
NavigateUrl='<%# "http://home/?" + (string)Eval("U_ID") %>'