#Eval if statement in repeater

后端 未结 6 986
野性不改
野性不改 2020-12-03 10:10

I\'m trying to check a string value inside a repeater, and if it has value then write a link, but can\'t seem to get it to work. If there is a value in myUrl then I want to

6条回答
  •  有刺的猬
    2020-12-03 10:53

    You can also call your public function inside code behind file:

    <%# MyFunction(Eval("myURL").ToString().Length) %>
    

提交回复
热议问题