超链接,根据条件使得超链接显示与否

来源:互联网 发布:java为app接口开发实例 编辑:程序博客网 时间:2024/05/21 17:15
<a style ="color: #fff; text-decoration: none;" href='<%#Eval("CoRuIsEnable").ToString()=="1" ? String.Format("CodeRulesEditFrm.aspx?CoRuPK={0}",Eval("CoRuPK")) : "#" %>'  class='<%#Eval("CoRuIsEnable").ToString()=="1"?"edit":"edit_gray"%>'>设置</a>
原创粉丝点击