由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - image with RadioButtonList c#
相关主题
一个dropdownlist的问题LinqPad is handy
listbox 的问题小菜鸟求助,PDF header signature not found
如何从memory里提出image?菜鸟继续问:how to update sql db entry, or create if not exist ?
What would be a good control for gallery.NET 入门系列(3)--SOAP, WSDL, disco
Q: Radiobuttonlist - select item in Datalist[转载] C# 中comboBox DataBinding 问题
textbox and radiobuttonlist[转载] a socket Question
control array in .nethow to use ctrl+z?
C#的更高境界A question about JavaScript (转载)
相关话题的讨论汇总
话题: image话题: listitem话题: database
进入DotNet版参与讨论
1 (共1页)
A*******n
发帖数: 625
1
I have a table, it include image name and image.(I save the image to the
database).
I get the image from the database, but how can I bind the image to the
radiobuttonlist? (note: I save the image to the database not folder, so no
image path)
my Code:

var queryforlogo = from a in context.Logoes
where a.DataBaseGroupId == gt.DataBaseGroupId
select a;
if (queryforlogo.Count() > 0)
{
foreach(Logo logo in queryforlogo)
{

byte[] data = logo.Image;
rblLogo.Items.Add(new ListItem(String.Format("<
img scr='{0}'>",data)));

}
}
I think "rblLogo.Items.Add(new ListItem(String.Format("",data
)));
" is not working.
any idea?
Thanks
x**n
发帖数: 461
2
You need to create a service to return the image, and point to its url.
1 (共1页)
进入DotNet版参与讨论
相关主题
A question about JavaScript (转载)Q: Radiobuttonlist - select item in Datalist
Need Help: a very wierd Managed C++ interop problemtextbox and radiobuttonlist
Size limit on HttpResponse.BinaryWrite?control array in .net
新手问个问题哈,关于C#的C#的更高境界
一个dropdownlist的问题LinqPad is handy
listbox 的问题小菜鸟求助,PDF header signature not found
如何从memory里提出image?菜鸟继续问:how to update sql db entry, or create if not exist ?
What would be a good control for gallery.NET 入门系列(3)--SOAP, WSDL, disco
相关话题的讨论汇总
话题: image话题: listitem话题: database