views:

14

answers:

0

Hi,

I am getting the list from the database with different types of data in the list i.e. string,int, date and imagebytes. In my partial view, I am looping through the list and displaying the data in the table.

(ViewData["UserAlert"])%>--%> Image --%> Image Name Membership Alert Id Category Time Severity Status class="odd"> >

I am using single ActionResult to retrieve the list.

public ActionResult GetAlerts() {
AlertsDAO alertsDAO = new AlertsDAO(); userAlerts = alertsDAO.GetUserAlerts(1); ViewData["UserAlert"] = userAlerts; return PartialView("AlertUserControl", userAlerts); }

Normal datatypes are getting displayed. But how to display the image in from the imageBytes that am getting from the database.?

Kindly Suggest??

Thanks