카테고리 없음

[asp.net] 문자 리터럴에서 eval () 사용시 구문 문제

행복을전해요 2021. 1. 8. 19:53

이 시도:

href='<%# (Boolean.Parse(Eval("HasFile").ToString())==true) ?
  "www.milliyet.com.tr" :
    "../Static_Pages_Content.aspx?Parent_ID=" + Eval("Node_ID") %>'
    

(명확성을위한 새 줄만)



출처
https://stackoverflow.com/questions/2005951