如何在 c# Web 编程中使用 asp 标记中的“服务器位置 + 表值”来寻址 ImageUrl

本文关键字:服务器位置 服务器 位置 表值 ImageUrl 寻址 Web 编程 asp | 更新日期: 2023-09-27 18:36:11

<asp:Image ID ="ImageNameLabel" runat ="server" ImageUrl ='<%#Eval("ImageLocation")%>+ <%#Eval("ImageName")%>'/>

请告诉我如何在asp标签中添加值。

如何在 c# Web 编程中使用 asp 标记中的“服务器位置 + 表值”来寻址 ImageUrl

你的意思是使用data-bindig吗?

<img src="http://localhost/<%# Eval("FileName") %>" />