Binding Image Controls to a Dataset?

G

gemel

I have a set of images on a SQL2000 server that I use on a Windows
Application by binding to a dataset. The controls on a Web Application
require a URL. Is there a way that I can connect these controls to a
dataset?

John L
 
B

Brock Allen

You'll have to generate <img> or <asp:Image> in your DataSet that point back
t your server., If the images themselves are in the database, then I'd suggest
building a handler that lodas the images from your database (perhaps by a
QueryString passed in the URL). I don't have a sample that pulls images from
the database, but I do have a sample that shows building a handler that serves
up images. You'd just have to modify it to load them from the database instead:

http://staff.develop.com/ballen/blog/PermaLink.aspx?guid=2d8b430b-8361-416d-9df8-9aff48bf2481
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,182
Latest member
BettinaPol

Latest Threads

Top