asp:xml问题!!!急
程序如下:
数据表中有一个字段xml_name用来存储xml文件名字的 例如 aa.xml
我从表中读出记录绑定到datalist的模板上。如下
<datalist .....
<asp:Itemtemplate>
<asp:Xml DocumentSource='<%#DataBinder.Eval(Container.DataItem,"xml_name")%>' runat='server'/>
...
</asp:Itemtemplate>
绑定的所有xml文件在此程序文件的下一级目录 xml_source中 请问我将如何设置
asp:Xml的DocumentSource属性指向xml_source下的文件.
我试着如下设置,没有成功:
<asp:Xml DocumentSource='xml_source/<%#DataBinder.Eval(Container.DataItem,"xml_name")%>' runat='server'/>
请问如何解决,狂谢!