Monday, January 28, 2019

Problem with loading a binary image from the database inside a listview in asp.net

Hey guys, i need help with a simple thing.

I'm making an e-commerce in ASP.NET (it needs to be this language) and i'm currently having problem to make the product catalog. I'm using listview as a way to load the information from the database and i managed to get workthe load the text information (such as id and price) but i'm having problems loading the image.

The image is in byte format. I converted it to the database through c#. Here's how it looks https://imgur.com/8OGjXnX.

The main problem is that the image doesn't appear at all, just an icon. After so many tries for me, an icon, it's actually a progress haha. Icon problem > https://imgur.com/847HA6g

Here's my itemTemplate inside the listview: https://pastebin.com/rNFV5i4J

Here's my c# code behind it: https://pastebin.com/c7gFwdJw

After research i coudn't find a proper way to do it, since it loads as the information is received from the database. Sorry for any spelling mistakes, english is not my first language haha. Thanks

Problem with loading a binary image from the database inside a listview in asp.net Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team