Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am making a website in which i am sending 10 links to all users and i am using 10 panels for every add i am sending, every panel has two buttons one to view the add and one to share the add on their facebook profile so i want to know how can i take the url from that href or link button and put assign it on a facebook share button so user can post that link on their facebook timeline, over that all these links will get refreshed randomly every day automatically. So how can i achieve this ?

What I have tried:

My code--

<asp:Panel ID="Panel1" runat="server">  
<table class="table table-striped table-bordered">              
    <tr>  
        <td>Ads 1</td>  
        <td>  
           Link  
        </td>  
        <td>  
              
            <asp:Button ID="Button21" runat="server" OnClick="Button21_Click" Text="View" CssClass="btn btn-primary btn-sm" />  
            <asp:Button ID="Button2" runat="server" Text="Share" CssClass="btn btn-danger btn-sm" />  
  
        </td>  
    </tr>  
</table>  
</asp:Panel>



This is my code for creating the panel and setting two buttons in it, i have 9 more panels like this below this code.

How can i make this share button ? which takes the href from link button or hyperlink(i am using button click even to redirect the user but i can change it accordingly) and use that url as a share link ?
Thanks
Posted

1 solution

Embed Your Share Code inside Dynamic Tools like Repeater, ListView and Gridview..
 
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