62,046
社区成员
发帖
与我相关
我的任务
分享
绑定
<%#"./xx/yy"+Eval("字段名称").ToString()+".doc"%>
显示一条
前台
<%=SetFile(".doc")%>
后台
public string SetFile(string filetype)
{
DataSet ds=DBHelper.GetSingle("select A from tb where...");//查询结果
string path=ds.Tabels[0].Rows[0]["A"].ToString();
return "./xx/yy"+path+filetype;//filetype可以是.doc,.txt等
}