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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -