Twitter meta image RRS feed

  • Question

  • User-253940806 posted

    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"/>

    Friday, November 9, 2018 8:04 PM

All replies

  • User839733648 posted

    Hi splitfire,

    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.

    Best Regards,



    Tuesday, November 13, 2018 8:51 AM
  • User-253940806 posted

    Let me try that out and I'll get back to you.

    Tuesday, November 13, 2018 12:26 PM