Skip to content
Loading
System.Byte[] showing in Gridview Column in ASP.NET C#
0
  • Jeeva Subburaj
    I hope you understand that System.Byte[] is getting printed because of the linkbutton has text property which is mapped to Image Field (byte array object). But, what you are saying is , you want to keep the link button with the text field yet you don't want to show the System.Byte[] text which is confusing me. Maybe, I am not understanding your requirements clearly.
    0
  • Dear Mr. Subburaj,
     
    I know that the  System.Byte is showing becuase of that piece code. That code kept for user to understand that particular action has a image.(its a client requirment)
     
    I need to keep only the icon in that column and need to remove System.Byte[] in gridview column.
    0
  • Jeeva Subburaj
    System.Byte is showing because the in the linkbutton, you have set the text with Text='<% # Eval("Image")%>' which shows thats value. If you remove that, it wont print it.
     
    View Image 
    0