我想要一些信息. [英] i want some info....

查看:108
本文介绍了我想要一些信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <   asp:Image   ID    Image1 "  runat   服务器" 
 
                   span>        ImageUrl   <%#"  + Eval(" )%> ; ' / 




这条线是做什么的?

ImageUrl=''<%# "Handler.ashx?ID=" + Eval("ID")%>''/

什么是Eval?

解决方案

它将图像URL设置为"Handler.ashx?ID =,加上从Eval方法返回的值. blockquote>

它是HTTP处理程序(* .ashx),并且使用数据库动态创建图像

检查以下内容:

http://www.dotnetcurry.com/ShowArticle.aspx?
ID = 129
[ ^ ]


<asp:Image ID="Image1" runat="server";

           ImageUrl='<%# "Handler.ashx?ID=" + Eval("ID")%>'/




what this line do?

ImageUrl=''<%# "Handler.ashx?ID=" + Eval("ID")%>''/

what is Eval ?

解决方案

It sets the image url to "Handler.ashx?ID=" plus whatever the returned value is from the Eval method.


it is HTTP Handler (*.ashx) and image is created dynamically by using database

Check the following:

http://www.dotnetcurry.com/ShowArticle.aspx?
ID=129
[^]


这篇关于我想要一些信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆