I need to pass a block of html that has a label with a path of an image (this block is saved in the database), the path of the image I need to put in a function of c #.
I already get the html as a string but I can not extract the value of the element
//Esta es la conexion aqui si muestra el bloque html que viene de la base de datos
cone.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = cone;
cmd.CommandText = "SELECT encabezado from dbo.cuentas where codigo = '" + codigoCuentas + "'";
reader = cmd.ExecuteReader();
//reader.Read();
//cmd.CommandType = CommandType.Text;
if (reader.Read())
{
//Console.WriteLine(String.Format("{0}", reader["nombre"]));
encabezado = reader["encabezado"].ToString();
prueba.Text = nombre;
cone.Close();
}
Block html showing as string
<div style="text-align: center;" align="center"><br></div><div style="text-align: center;"
align="center"><img src="/pcaAdmin/Uploads/PCA 3 peq.png"><br></div><hr>
What I need is to put the route of the img src in this code
iTextSharp.text.Image logoTims = iTextSharp.text.Image.GetInstance("Aqui va la ruta");