نمایش نتایج 1 تا 2 از 2

نام تاپیک: gridview, doesn't show me the image instead of showing me a text "System.Byte[]"

  1. #1

    Lightbulb gridview, doesn't show me the image instead of showing me a text "System.Byte[]"

    I try to use gridview with objectdatasource to obtain the images from the sql database. Within the database, a datafield is declare as "varbinary" datatype.

    Now in my gridview, it doesn't show me the image instead of showing me a text "System.Byte[]"

    May I know how to solve it.

  2. #2

    نقل قول: gridview, doesn't show me the image instead of showing me a text "System.Byte[]"

    i did it by using handlers . my handler got an id and retrives bytes from database and send it as an image .

    then I set my <img> src attribute to that handler

    somthing like <img src='myhandler.ashx?ImageID=5' />

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •