ShareThis Forums » ShareThis Wish List

Dynamicaly changing the url from C#

(1 post)
  • Started 5 months ago by shvoong

Tags:


  1. shvoong
    Member

    Hi,

    My page (where the ShareThis button resides) is within an aspx page within a MasterPage (asp.net).
    I'm using c# and would like to know how do I dynamically change the url from the c# based on the user click.

    using your example:
    <script language=”javascript” type=”text/javascript”>
    //Create your sharelet with desired properties and set button element to false
    var object = SHARETHIS.addEntry({
    title:’share’,
    summary: ‘Sharing is good for the soul.’,
    url: 'http://www.SomeWebSite.com'},
    {button:false});
    //Output your customized button
    document.write(‘<span id=”share”><img src=“/my_share_icon.gif” />Share!</span>’);
    //Tie customized button to ShareThis button functionality.
    var element = document.getElementById(“share”);
    object.attachButton(element);
    </script>

    So.... what is the correct way (or syntax) to change the URL from the code behind page?

    10X!!!!

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.