joel ang

joel ang

  • NA
  • 1
  • 1.8k

Display Image from Microsoft Access on C# web form

Jan 18 2013 3:11 AM

How to display image from Microsoft access.

I used a select query statement for it .

OleDbCommand



sqlquery = new OleDbCommand("SELECT * FROM StudentDatabase WHERE AdminNo ='" + TxtAdminNo.Text + "' ", ConnectionString);


           


OleDbDataReader reader = sqlquery.ExecuteReader();


           


while (reader.Read())


            {

  Image2.ImageUrl += reader[9].ToString()  +


"";

}



with this code when i debug. The image control gave a cross and inside properties have the same path as \Images\111111A.jpg


Anyone have any idea on what to add on or edit?


Answers (1)