how to create dynamic social sharing link in asp.net c#

Create dynamic social sharing link in asp.net c# using this code.

by below code you can create any social links.. 
put this code on page load or however you want to use.


facebook.HRef="https://www.facebook.com/sharer/sharer.php?u="+ Request.Url.AbsoluteUri;

twitter.HRef = " https://twitter.com/home?status=" + Request.Url.AbsoluteUri;

google_plus.HRef="https://plus.google.com/share?url"+ Request.Url.AbsoluteUri;


linkedin.HRef = "https://www.linkedin.com/shareArticle?mini=true&url"  + Request.Url.AbsoluteUri;


Comments

Popular posts from this blog

Disable right click, Inspect Element and page source using JavaScript in Html and asp.net