SqlConnection con = new SqlConnection();
con.ConnectionString = "Data Source=PROMOD-PC;Initial Catalog=travel_Directions;Integrated Security=True";
DataTable dt = new DataTable();
String selQuery = "SELECT Image FROM MapDataImage WHERE Source='" + TextBox1.Text + "';";
SqlCommand SelCmmnd = new SqlCommand(selQuery);
SqlDataAdapter sDatAdp = new SqlDataAdapter();
SelCmmnd.CommandType = CommandType.Text;
SelCmmnd.Connection = con;
con.Open();
sDatAdp.SelectCommand = SelCmmnd;
sDatAdp.Fill(dt);
ListView1.DataSource = dt;
ListView1.DataBind();
con.Close();
sDatAdp.Dispose();
con.Dispose();
dt.Dispose();
guys now code is ready...(execute without an error) but when i clicked the button... it will show label like Image: System.Byte[].... in list view is there any problem in the code?
Is this code wrong? someone please help me? to figure this out............