我在asp.net的网页上提取图像 [英] i am fetching images on my web page in asp.net
本文介绍了我在asp.net的网页上提取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我收到编译tym错误,fval函数在当前上下文中不退出。
I am getting compile tym error that fval function not exit in current context.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server">
<ItemTemplate>
<table>
<tr>
<td>
<img src ="<%#fval("image1") %>" height ="100" width ="100" />
<img src ="<%#fval("image1") %>" height ="100" width ="100" />
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
</div>
</form>
</body>
</html>
推荐答案
这样写......
Write like this..
<img src='<%# Eval("image1") %>' height="100" width="100" />
这篇关于我在asp.net的网页上提取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文