Skip to content
Loading
how to implement below code to find image from table to image control
  • Rajanikant Hawaldar
    can check this line  cmd.Connection = con; make sure connection state is open otherwise you have open, refer below article
     
    https://www.c-sharpcorner.com/article/exploring-connection-in-ado-net/
  • Bhavesh Vankar

    because i have used con directly i have assign connection string on top. 

    kindly tell me whats wrong in this code...

    i have big confussion with SqlDataAdapter, DataTable and SqlDataReader see in code.

    i want to display record from database with image what should i do for it...in this code... 

    i have two table table 1 from detail of user and table 2 only for image in binary format. 

  • Rajanikant Hawaldar
    why your not using conString