Work on C# ASP.NET. I have a problem with repeater control. I want to show images on a page that is stored in a database. I collect information from northwind database.
Categories table
SQL syntax:
CREATE TABLE [dbo].[Categories](
[CategoryID] [int] IDENTITY(1,1) NOT NULL,
[CategoryName] [nvarchar](15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Picture] [image] NULL)
On pageload C# syntax :
NorthWindDataContext db = new NorthWindDataContext();
List<Category> oList = new List<Category>();
oList = db.Categories.ToList();
Repeater1.DataSource = oList;
aspx Syntax:
<ItemTemplate>
<tr>
<td>
<%#DataBinder.Eval(Container, "DataItem.Picture")%>
</td>
</tr>
</ItemTemplate>
After run the code,in my page i don't get the picture.help me to get picture on my page .Thanks in advance .If have any query plz ask.