hi,
I have a social media "share this" button on my page and one of options is share on facebook

The OG meta tags have been set but I want to get an image from database table
and use that as the image rather than setting a static one like below
<meta property="og:image" content="http://xxxxxxxxxxxxxxxxxxx/siteimages/newfacebookImage.jpg"/>

On the main aspx, I am displaying photo portfolios from different artists identified by the QueryString ArtistId
In code behind
        string strSQL = "SELECT [FilePath],[FirstName], [LastName] FROM [Images] WHERE ([ArtistId] = @ArtistId)";         SqlConnection conn = new SqlConnection("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx;xxxxxxxxxxxxxxxxxxxxxx");         conn.Open();

...

Go to the complete details ...