Displaying Image in Datalist from SQL Server
Posted by Ramani Sandeep on July 14, 2008
This article describes how to display images which are stored in a database.
Step 1: Create page Default.aspx with following code
Here is the code on Default.aspx Page:
Step 2: Code Behind will contain the code shown below
Here is the code on Default.aspx.cs:
Step 3: Create Page that will return Image as Output.
Here you also create httpHandler. Get the ID from Image that you want to return from QueryString[“ID”].
Here is the code on ReadRealImage.aspx:
Step 4: Procedure & Tables Details
Here i have given you the procedure that i have used in my example, you can user your table & procedure in which the Images are stored.
Hope this will Help !!!
This entry was posted on July 14, 2008 at 7:18 AM and is filed under ASP.NET. Tagged: display image from database, Displaying Image in Datalist from SQL Server, how to display image from database in asp.net. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.