나는 이미지 컨트롤을했고 나는 이미지를 표시하는 코드를 추가하지만이미지 표시 할 수 없습니다
ASPX 표시 모든 이미지가없는 : 당신의 코드를 보면
using (System.Data.SqlClient.SqlConnection con = Connection.GetConnection())
{
string Sql = "Select Image From AboutUsData Where [email protected]";
System.Data.SqlClient.SqlCommand com = new System.Data.SqlClient.SqlCommand(Sql, con);
com.CommandType = System.Data.CommandType.Text;
com.Parameters.Add(Parameter.NewInt("@Id", Request.QueryString["Id"].ToString()));
System.Data.SqlClient.SqlDataReader dr = com.ExecuteReader();
if (dr.Read() && dr != null)
{
Image2.ImageUrl = dr["Image"].ToString();
}
}