Last post Nov 13, 2018 12:26 PM by splitfire
Nov 09, 2018 08:04 PM|splitfire|LINK
I have a twitter meta tag that in my master, but I wanted to put the code to get the image information into my content page. I am looking for options. Not all of my pages will have an image from the DB, but I could default to our logo when there is no image
from the DB.
<meta name="twitter:image" content="imagepath"/>
Nov 13, 2018 08:51 AM|Jenifer Jiang|LINK
According to your description, I suggest that you could try to set an id to <meta> and modify the image path like the code below.
<meta name="twitter:image" id="twid" runat="server" content="imagepath"/>
And then you could use FindControl() method to find the control and modfiy the imagepath to the value you've got from DB.
Nov 13, 2018 12:26 PM|splitfire|LINK
Let me try that out and I'll get back to you.