c# - asp:hyperLink NavigateURL and Eval functions -
what correct syntax add eval() function navigateurl attribute of asp:hyperlink?
i trying achieve below:
navigateurl="http://home/?<%# eval("u_id") %>"
the link should "http://home? + value of u_id" syntax isn't right know. whats correct spelling?
try this
navigateurl='http://home/?<%# eval("u_id") %>'
or
navigateurl='<%# "http://home/?" + (string)eval("u_id") %>'
Comments
Post a Comment