<%#Eval("Workflow_StateName").ToString().Trim() == "待入账" ?
string.Format("<a href=/"javascript:printClaims('{0}')/">打印报销单</a> ",DataBinder.Eval(Container.DataItem, "BusinessCode"))
: "N/A"%>
<%#Eval("Workflow_StateName").ToString().Trim() == "待入账" ?
string.Format("{0}", Html.ActionLink("打印", "PrintExpenseClaims", "Report", new
{
bizCode = Eval("BusinessCode").ToString()
}))
: "N/A"%>
<span><%#Html.ActionLink("Print", "PrintExpenseClaims", "Report", new
{
bizCode = Eval("BusinessCode").ToString()
})%>
</span>
--如果是绑定表达式,一定要注意#