You can download a sample project that adds new FieldTemplate controls for accessing images from both the database and the file system. If you look in App_Code there is a Photo.cs which shows the proper attributes you need to put on the image field in your
database to get it to display. The control supports scaling the image and will allow uploading of images as well. I plan on having a detailed description of how this project was built and how to use it in my
blog after the holidays.
Here is a link to the sample to use before my blog post is live:
DbImage Sample.
Scott Hunter
ASP.NET Team
http://blogs.msdn.com/scothu
Scott Hunter
PM, ASP.NET Team, Microsoft
Marked as answer by ron.westbrook on Dec 26, 2007 04:16 PM
scothu
Participant
1436 Points
291 Posts
Microsoft
Moderator
Re: Dynamic Image Field
Dec 22, 2007 06:47 PM|LINK
Ron,
You can download a sample project that adds new FieldTemplate controls for accessing images from both the database and the file system. If you look in App_Code there is a Photo.cs which shows the proper attributes you need to put on the image field in your database to get it to display. The control supports scaling the image and will allow uploading of images as well. I plan on having a detailed description of how this project was built and how to use it in my blog after the holidays.
Here is a link to the sample to use before my blog post is live: DbImage Sample.
Scott Hunter
ASP.NET Team
http://blogs.msdn.com/scothu
PM, ASP.NET Team, Microsoft