Click here to Skip to main content
15,908,661 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to open linkedIn profile using his Profile link?



when the user clicks on the anchor tag i want to open the linked in profile

What I have tried:

<div class="col-md-2  rounded-circle">
           <h5>@item.KeyPeopleName</h5>
           <a target="_blank" href="linkedin.com/in/belmer-rodolphe-123674151">
               <img height="20%" width="20%" src="~/Content/Images/WorkPlace/linkedin.png" />
           </a>
       </div>
Posted
Updated 19-Jan-22 22:00pm

1 solution

You're missing the https:// from the start of your link.
HTML
<a target="_blank" href="https://linkedin.com/in/...">
 
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