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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -