Community discussion forum

Urgent question on Datagrid in C# ASP.NET

  • 1 year ago
    Hi, I have a VERY URGENT question on C# in ASP.NET. I am building an ASP.NET WEB application.

    Does anyone know how to retreive BINARY image from a SQL Server 2005 Express Database and DISPLAY it on a Datagrid control?

    I can manage to retreive the Binary Data, but I have absolutely no idea how it can be placed into the dataset, or accessed via the Databinder.

    I can only display regular string data onto a Datagrid Control. This is my method in displaying string data onto a Datagrid:

    1. From the Codebehind, I connect to the database.
    2. I then use a DATASET and store the retreived data
    3. In the HTML page, I use the Databinder to load the data (<%# DataBinder.Eval(Container.DataItem,"NAMEOFDATABASECOLUMN") %>

    However this method only works for strings, I need to display Binary Image, can anyone help me? Or does anyone know anywhere with similar examples?

    Thank you!!!
  • 1 year ago

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback