By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,052 Members | 1,456 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,052 IT Pros & Developers. It's quick & easy.

Displaying images in gridview?

P: n/a
VMI
I'm working on an ecommerce-type we app, and I would like to save/retrieve
image information into my sql server DB. If I save the file path in my
table, how can I use that info to display the image in the gridview? IS there
a better way?
Since there are so many products, I don't want to save the actual image into
the DB. I just want to save some info that I can later reference when I fill
up my grid.
What's the best way to do this?

Thanks.
Sep 24 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
VMI,

I would do it as you wrote it, with the addition to use thumbnails on your
pages instead of original images.

Getting the place from the Server is of course just a string of the path
that you have saved in whatever datatype on the server you want for it, as
long as the datatype hold the charachters as you want to use.

Be aware that as soon as you start to save the actual images in the server
than it is a long way to go; because either you have to sent an url page as
raw image to the clients or either you have to put them temporaly on disk.
Both has the same result; it is bad to manage.

Cor

"VMI" <VM*@discussions.microsoft.comschreef in bericht
news:36**********************************@microsof t.com...
I'm working on an ecommerce-type we app, and I would like to save/retrieve
image information into my sql server DB. If I save the file path in my
table, how can I use that info to display the image in the gridview? IS
there
a better way?
Since there are so many products, I don't want to save the actual image
into
the DB. I just want to save some info that I can later reference when I
fill
up my grid.
What's the best way to do this?

Thanks.

Sep 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.