![]() |
Web Development »
ASP.NET »
Howto
Advanced
License: The Microsoft Public License (Ms-PL)
Display images from SQL Database - the easy wayBy FF77This project contains a Web Custom Control for rendering images directly from the database. Can be used with image fields, text, date or numerical fields (it generates an image containing the text) and with URL fields (like an usual image control). |
VB (VB7.x, VB8.0, VB9.0), .NET (.NET2.0, .NET3.0, .NET3.5), ASP.NET, Dev
|
||||||||
|
Advanced Search Add to IE Search |
|
|
|
||||||||||||||||
This is version 3.0 of the VsCustomRenderer control. You can find previous versions here: 2.0 and 1.0.
This project was inspired by an article on code-project written by dev2dev: Article
Parts of the code were taken from that project.
To test this control:
<add verb="*" path="*.jpg" type="VSCustomRendererLibrary.VsImageHandler,
VSCustomRendererLibrary"/>
If you cannot find this section in your webconfig file, just create it under <system.web>:
<system.web>
......
<httpHandlers>
<add verb="*" path="*.jpg" type="VSCustomRendererLibrary.VsImageHandler,
VSCustomRendererLibrary"/>
</httpHandlers>
</system.web>

This webcontrol now works with Ajax.
This controls no longer saves images to disk in order to display them. The pictures are displayed directly from memory through a IHttpHandler.
This http handler does not open a new database connection, it just displays the images from memory so there are no delays in page rendering and no extra parameters to set.
All the versions of this control are also posted on codeplex.
| You must Sign In to use this message board. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
General
News
Question
Answer
Joke
Rant
Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+PgUp/PgDown to switch pages.
|
PermaLink |
Privacy |
Terms of Use
Last Updated: 5 Jul 2008 Editor: |
Copyright 2008 by FF77 Everything else Copyright © CodeProject, 1999-2010 Web11 | Advertise on the Code Project |