在一个页面a.htm中,有一个图片控件,希望通过设置它的src,来引用另外一个页面返回的图片并显示出来,但不成功。如何处理?
a.htm:
<img id="img1" src="xxx.aspx?id=1" width="219" height="334" style="cursor: hand">xxx.aspx:
private void Page_Load(object sender, System.EventArgs e)
{
Response.Write("hunt.jpg");
Response.End();
}请指点,不胜感激。
a.htm:
<img id="img1" src="xxx.aspx?id=1" width="219" height="334" style="cursor: hand">xxx.aspx:
private void Page_Load(object sender, System.EventArgs e)
{
Response.Write("hunt.jpg");
Response.End();
}请指点,不胜感激。
解决方案 »
- XML读写节点,并更换路径
- 有哪位看过ASP.NET开发典型模块大全
- .net 无法连接sql2008
- 问一下 用户激活方法的一个思路
- 请大家为我指点一下asp.net中CrystalReport 的设计过程
- 点击dataview 一条记录,进入新页面显示它的详细内容
- 关于<meta>指令的,,,,,,,,,,,,,,,,,一点小问题。闲人帮忙。。。。。
- 有关给控件添加属性的问题?
- crystal报表的打印格式问题
- 使用vs.net如何将现有的project发布到其他目录?
- 测试.net程序时遇到的问题
- 我们作了一个项目,是在vs.net2003下作的!!sb客户竟然要用在2002下,请问高手们,2003的项目降级到2002,需要注意些什么????
is the file local on the web server? have you triedprivate void Page_Load(object sender, System.EventArgs e)
{
Response.Clear();
Response.ContentType="image/jpeg";
Response.WriteFile("hunt.jpg");
Response.End();
}or why not
Response.Redirect("hunt.jpg")?