Need help to display data with image into page

Hi there

I want to display information regarding product with product pictures.
information is saved in sql server and images are save in harddrive director Images/Pc100
where Pc100 is product code and image name in directory.
can any one help me how to do in datarepeater/ or gridview.

Senerio: when i put product code into text box. then information should be show into grid with image.
and when i put category no = 1 then all product should be show with image into datarepeater/ gridvew

i am using Asp.net 1.1 and cSharp

please help
waiting fro reply
riz
[617 byte] By [monriz] at [2007-11-20 8:42:36]
# 1 Re: Need help to display data with image into page
well you can just insert an asp:Image tag into your datagrid and the path can be made up of a static string leading to the path on disk plus the product code variable that doubles as the image name plus the extension so if your product code was named ProductCode in your db your string may look like this

string fileNameForGV = "/images/products/" + ProductCode.ToString() + ".gif"

and this string could be created when you bind your dataset

more about displaying an image in a gridview is here:
http://msdn2.microsoft.com/en-us/library/aa479350.aspx

hth,
mcm
mcmcom at 2007-11-9 11:53:24 >
# 2 Re: Need help to display data with image into page
Let me add one more question. If images are from Database directly, how can I do for displaying them in datagrid? Is that possible to make loading page very slowly?
jasonli at 2007-11-9 11:54:26 >