G
Guest
Hi,
I have an image web control with other web controls..
<asp:Image id="itemImage" runat="server"></asp:Image>
<asp:Label id="itemNameLabel" runat="server"></asp:Label>
<asp:Label id="itemDescribeLabel" runat="server"></asp:Label>
<asp:Label id="itemPriceLabel" runat="server"></asp:Label>
and I want to display an image in the image web control from the database..
private void itemDetail(SqlString itemId) {
sweItem.Id = itemId.ToSqlDecimal();
sweItem.SelectOne();
itemLabel.Text = sweItem.Name.ToString();
itemDetailLabel.Text = "The detail of " + itemLabel.Text + " item.";
itemNameLabel.Text = itemLabel.Text;
itemDescribeLabel.Text = sweItem.ItemDescribe.ToString();
itemPriceLabel.Text = sweItem.Price.ToString();
if(sweItem.Image != null) {
byte[] image = sweItem.Image.Value;
//what is the next step ??!?
}
}
what is the next step after getting the array of bytes ?!
Any help ?!
I have an image web control with other web controls..
<asp:Image id="itemImage" runat="server"></asp:Image>
<asp:Label id="itemNameLabel" runat="server"></asp:Label>
<asp:Label id="itemDescribeLabel" runat="server"></asp:Label>
<asp:Label id="itemPriceLabel" runat="server"></asp:Label>
and I want to display an image in the image web control from the database..
private void itemDetail(SqlString itemId) {
sweItem.Id = itemId.ToSqlDecimal();
sweItem.SelectOne();
itemLabel.Text = sweItem.Name.ToString();
itemDetailLabel.Text = "The detail of " + itemLabel.Text + " item.";
itemNameLabel.Text = itemLabel.Text;
itemDescribeLabel.Text = sweItem.ItemDescribe.ToString();
itemPriceLabel.Text = sweItem.Price.ToString();
if(sweItem.Image != null) {
byte[] image = sweItem.Image.Value;
//what is the next step ??!?
}
}
what is the next step after getting the array of bytes ?!
Any help ?!