Author: Subhakanta | Posted on: 8/10/2009 2:25:10 AM | Views : 386

Hi,
i store image in database and try to retrive it in a gridview by the help of handler(.ashx).
but problem is in IIS,image not display insted none symble is display.but in VS it is working fine.
i use VS 2005 and IIS 6.0.
below is my code.any idea???
Protected Sub dlstPackage_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlstPackage.ItemDataBound
If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then
 
Dim pkgImage As Image = DirectCast(e.Item.FindControl("Image1"), Image)
Try
 
_strQuery = "SELECT PKIMAGE " _
+ " FROM PACKAGE " _
+ " WHERE PKID='" + lblPkid.Text + "'"
_dsPackage = eDataAccessLayer.DataAccess.GetResultSet(_strQuery, "PACKAGE")
If (_dsPackage.Tables(0).Rows.Count > 0 ...

Go to the complete details ...