|
-
April 13th, 2006, 08:15 AM
#1
image in datagrid asp.NET
how can i add an image into datagrid asp.NET ?
-
April 13th, 2006, 10:25 AM
#2
Re: image in datagrid asp.NET
you could use this to add an image to your dg, value in db as pic.png or pic.jpg
Code:
<asp:TemplateColumn HeaderStyle-Width="125" HeaderText="text">
<ItemTemplate>
<asp:Image Width="150" Height="150" ImageUrl='<%#("http:\\localhost\yourmap\Images\"+DataBinder.Eval(Container.DataItem, "datafield")) %>' runat="server" ID="Image1" />
</ItemTemplate>
</asp:TemplateColumn>
-
April 16th, 2006, 12:11 PM
#3
Re: image in datagrid asp.NET
Or in a tables header cell.
Code:
<asp:TableCell Text="<img src="../images/calendar.gif">></asp:TableCell>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|