<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ShareThis Forums Topic: Dynamicaly changing the url from C#</title>
<link>http://forums.sharethis.com/</link>
<description>ShareThis Forums Topic: Dynamicaly changing the url from C#</description>
<language>en</language>
<pubDate>Wed, 07 Jan 2009 13:50:21 +0000</pubDate>

<item>
<title>shvoong on "Dynamicaly changing the url from C#"</title>
<link>http://forums.sharethis.com/topic/changing-the-url-dynamicaly#post-309</link>
<pubDate>Tue, 22 Apr 2008 15:17:09 +0000</pubDate>
<dc:creator>shvoong</dc:creator>
<guid isPermaLink="false">309@http://forums.sharethis.com/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;My page (where the ShareThis button resides) is within an aspx page within a MasterPage (asp.net).&#60;br /&#62;
I'm using c# and would like to know how do I dynamically change the url from the c# based on the user click.&#60;/p&#62;
&#60;p&#62;using your example:&#60;br /&#62;
&#38;lt;script language=”javascript” type=”text/javascript”&#38;gt;&#60;br /&#62;
//Create your sharelet with desired properties and set button element to false&#60;br /&#62;
var object = SHARETHIS.addEntry({&#60;br /&#62;
title:’share’,&#60;br /&#62;
summary: ‘Sharing is good for the soul.’,&#60;br /&#62;
url: 'http://www.SomeWebSite.com'},&#60;br /&#62;
{button:false});&#60;br /&#62;
//Output your customized button&#60;br /&#62;
document.write(‘&#38;lt;span id=”share”&#38;gt;&#60;a href=&#34;”javascript:void(0);”&#34;&#62;&#38;lt;img src=“/my_share_icon.gif” /&#38;gt;Share!&#60;/a&#62;&#38;lt;/span&#38;gt;’);&#60;br /&#62;
//Tie customized button to ShareThis button functionality.&#60;br /&#62;
var element = document.getElementById(“share”);&#60;br /&#62;
object.attachButton(element);&#60;br /&#62;
&#38;lt;/script&#38;gt;&#60;/p&#62;
&#60;p&#62;So.... what is the correct way (or syntax) to change the URL from the code behind page?&#60;/p&#62;
&#60;p&#62;10X!!!!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
