Click here to Skip to main content
15,441,078 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to generate preview of any URL(Link) with thumbnail or another thing In Asp.net Core looks like the attached image.



What I have tried:

web browser in Asp .net core but dont have any result yet.
Posted
Updated 15-Jun-22 5:24am
v3
Comments
CHill60 15-Jun-22 5:02am    
There is no image attached - you cannot attach images directly here, but you can include a link to an image - assuming members are happy to click on it. My recommendation would be to give a better description of your problem - including the code that you have already tried

1 solution

You read the metadata in the html header and produce an image from that. You can read about it here: The Essential Meta Tags for Social Media | CSS-Tricks - CSS-Tricks[^]

Whilst not C#, this article guides you through the process: How to Create a Link Preview: The Definite Guide [Implementation and Demo Included] - Andrej Gajdos[^]

Here is the google search that I used to complete the answer above: c# web page preview using meta data[^] ... You can find more information there.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900