本文介绍了如何在ImageButton中放置图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我以编程方式创建了按钮图像,我想将图像放在该图像按钮中,来自
Context.Response.BinaryWrite()
我该怎么做?
i created button image programmatically and i want to place image in that image button from the
Context.Response.BinaryWrite()
how can i do that?
ImageButton img = new ImageButton()
{
ID=Convert.ToString(i),
Height = 171,
Width=150,
BorderColor = System.Drawing.Color.Gray,
};
// i want to place that image in the ImageButton
Context.Response.ContentType = "image/jpg";
Context.Response.BinaryWrite(Prod[i].img);
推荐答案
这篇关于如何在ImageButton中放置图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!