Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想像这样在href中设置对象的值
<a href="<%result[0].DocumentUrl %>">
但我收到编译错误。语法方面的任何帮助
您需要添加一个等号 ( =):
=
<a href="<%= result[0].DocumentUrl %>">
您可以在此处阅读有关不同内联 asp 标签的更多信息。