<pre name="code" class="html"><td align="center">
<a style="width:80px;height:25px; color:blue;cursor:pointer;" href="<%#Eval("UpFilePath")%>">
<%# GetUpFileState(Eval("UpFilePath").ToString()) %>
</a>
</td>
public string GetUpFileState(string UpFilePath)
{
if (UpFilePath.ToString() != "")
return "查看附件";
else
return "";
}