<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rtraction - London, Ontario - Web Design, Web Development and Strategic Consulting &#187; .NET</title>
	<atom:link href="http://www.rtraction.com/blog/tag/net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rtraction.com/blog</link>
	<description>rtraction blog - Web Design, Web Development and Strategic Consulting</description>
	<lastBuildDate>Fri, 25 Nov 2011 15:08:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Add Sharing to Your Webapps</title>
		<link>http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps.html</link>
		<comments>http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps.html#comments</comments>
		<pubDate>Fri, 11 Dec 2009 22:34:16 +0000</pubDate>
		<dc:creator>gavinblair</dc:creator>
				<category><![CDATA[Devit!]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[social media]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.rtraction.com/blog/?p=1167</guid>
		<description><![CDATA[
When you post an article of any type on the web, it seems almost mandatory that you include &#8220;Tweet This!&#8221; and &#8220;Post to Facebook&#8221; links. Of course, you can get plugins that create sharing links automatically for most blog software (Sociable for Wordpress (this is what we use); Service Links for Drupal; Sexy Social Bookmark for Blogger; I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-1168 alignnone" style="border: 1px solid black;" title="Share via Twitter and Facebook" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/sharing.jpg" alt="Share via Twitter and Facebook" width="679" height="120" /></p>
<p>When you post an article of any type on the web, it seems almost mandatory that you include &#8220;Tweet This!&#8221; and &#8220;Post to Facebook&#8221; links. Of course, you can get plugins that create sharing links automatically for most blog software (<a href="http://wordpress.org/extend/plugins/sociable/" target="_blank">Sociable for Wordpress</a> (this is what we use); <a href="http://drupal.org/project/service_links">Service Links for Drupal</a>; <a href="http://www.cahayabiru.com/2009/04/add-sexy-social-bookmark-to-your.html" target="_blank">Sexy Social Bookmark for Blogger</a>; I could go on), and they usually cover more networks than Twitter and Facebook. However, some circumstances require a more do-it-yourself approach.</p>
<p>Adding &#8220;Share on Twitter&#8221; and &#8220;Post to Facebook&#8221; functionality to your web application is a snap! In this post you will learn:</p>
<ul>
<li>-How to prefill a tweet for your user</li>
<li>-How to let your users share a link on Facebook, including page thumbnails and description</li>
<li>-How to harness the power of bit.ly&#8217;s API for short URLs and click tracking</li>
</ul>
<p><span> </span></p>
<h2>Share on Twitter</h2>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1173" style="border: 1px solid black;" title="twitter.com/home?status=&lt;Your Tweet&gt;" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/twitterurl.jpg" alt="twitter.com/home?status=&lt;Your Tweet&gt;" width="679" height="120" /></p>
<p>Use the following code to create a &#8220;Share on Twitter&#8221; link:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">a</span> <span style="color: red">href</span><span style="color: blue">="<strong>http://twitter.com/home?status=</strong>Add Sharing to Your Webapps - http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps"</span> <span style="color: red">target</span><span style="color: blue">="_blank"&gt;</span>Share on Twitter<span style="color: blue">&lt;/</span><span style="color: maroon">a</span><span style="color: blue">&gt;</span></pre>
</div>
<p><a href="http://twitter.com/home?status=Add Sharing to Your Webapps - http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps" target="_blank">Share on Twitter</a></p>
<p>That was easy! Try replacing your link text with a Twitter button:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">a</span> <span style="color: red">href</span><span style="color: blue">="http://twitter.com/home?status=Add Sharing to Your Webapps -http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps"</span> <span style="color: red">target</span><span style="color: blue">="_blank"&gt;</span><strong><span style="color: blue">&lt;</span><span style="color: maroon">img</span> <span style="color: red">src</span><span style="color: blue">="shareontwitter.png"</span> <span style="color: red">alt</span><span style="color: blue">="Share on Twitter" /&gt;</span></strong><span style="color: blue">&lt;/</span><span style="color: maroon">a</span><span style="color: blue">&gt;</span></pre>
</div>
<p><a href="http://twitter.com/home?status=Add Sharing to Your Webapps -http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps" target="_blank"><img src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/shareontwitter.png" alt="Share on Twitter" /></a></p>
<p>Twitter can&#8217;t make it much easier than that! When the user clicks on your button, they are brought to their familiar Twitter timeline, with the next tweet prefilled for them.</p>
<p style="text-align: center;"><a href="http://www.rtraction.com/blog/wp-content/uploads/2009/12/twitter1.jpg" rel="lightbox[1167]"><img class="aligncenter size-full wp-image-1240" style="border: 1px solid black;" title="Prefilled Tweet" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/twitter1.jpg" alt="Prefilled Tweet" width="679" height="120" /></a></p>
<p><span> </span></p>
<h2>Facebook Share Link</h2>
<p style="text-align: center;"><a href="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebookurl.jpg" rel="lightbox[1167]"><img class="aligncenter size-full wp-image-1190" style="border: 1px solid black;" title="facebook.com/sharer.php?u=&lt;Your URL&gt;" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebookurl.jpg" alt="facebook.com/sharer.php?u=&lt;Your URL&gt;" width="679" height="120" /></a></p>
<p>Use the following code to create a &#8220;Post to Facebook&#8221; link:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">a</span> <span style="color: red">href</span><span style="color: blue">="http://facebook.com/sharer.php<strong>?u=http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps</strong>"</span> <span style="color: red">target</span><span style="color: blue">="_blank"&gt;Post to Facebook&lt;/</span><span style="color: maroon">a</span><span style="color: blue">&gt;</span></pre>
</div>
<p><a href="http://facebook.com/sharer.php?u=http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps" target="_blank">Post to Facebook</a></p>
<p>Too easy! Now replace the text with a nifty Facebook button:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">a</span> <span style="color: red">href</span><span style="color: blue">="http://facebook.com/sharer.php?u=http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps"</span> <span style="color: red">target</span><span style="color: blue">="_blank"&gt;</span><strong><span style="color: blue">&lt;</span><span style="color: maroon">img</span> <span style="color: red">src</span><span style="color: blue">="posttofacebook.png"</span> <span style="color: red">alt</span><span style="color: blue">="Post to Facebook" /&gt;</span></strong><span style="color: blue">&lt;/</span><span style="color: maroon">a</span><span style="color: blue">&gt;</span></pre>
</div>
<p><a href="http://facebook.com/sharer.php?u=http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps" target="_blank"><img class="alignleft" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/shareonfacebook.png" alt="Post to Facebook" width="60" height="18" /></a></p>
<p>When the user clicks on your &#8220;Post to Facebook&#8221; button, a new window pops up, prompting them to share the link. The user can optionally update their Facebook status while they are at it.</p>
<p><img class="aligncenter size-full wp-image-1234" style="border: 1px solid black;" title="Post to Profile - No Thumbnail or Description" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebook11.jpg" alt="Post to Profile - No Thumbnail or Description" width="679" height="120" /></p>
<h3>What about Page Thumbnails?</h3>
<p>That looks pretty good, but it could use a little more flair. Facebook attempts to add a thumbnail and a description to your link. Facebook scours your page for <strong>&lt;img&gt;</strong> tags, and uses those for thumbnail options, in the order that they appear on the page. If you want a screenshot of part of your webapp to be the first choice, you&#8217;ll have to put the following code near the top (before any other &lt;img&gt; tags) of your page:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">img</span> <span style="color: red">src</span><span style="color: blue">="screenshot.jpg"</span> <span style="color: red">style</span><span style="color: blue">="display: none"</span> <span style="color: red">alt</span><span style="color: blue">="" /&gt;</span></pre>
</div>
<p>This will not be visible to users due to the inline CSS, but Facebook will pick it up.</p>
<p style="text-align: center;"><a href="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebook2.jpg" rel="lightbox[1167]"><img class="aligncenter size-full wp-image-1277" style="border: 1px solid black;" title="Post to Facebook with Thumbnail" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebook2.jpg" alt="Post to Facebook with Thumbnail" width="679" height="120" /></a></p>
<h3>What about Page Description?</h3>
<p>Facebook uses the page&#8217;s meta description. Make sure the following code is present in the header of your page, between <strong>&lt;head&gt;</strong> and <strong>&lt;/head&gt;</strong>:</p>
<div style="border: 1px solid #aaa; padding: 10px; width: 660px; overflow-x: scroll;">
<pre><span style="color: blue">&lt;</span><span style="color: maroon">meta</span> <span style="color: red">name</span><span style="color: blue">="description"</span> <span style="color: red">content</span><span style="color: blue">="rtraction - Add Sharing to Your Webapps - Twitter and Facebook sharing links are a snap to build!" /&gt;</span></pre>
</div>
<p>Now your Facebook share is complete with a thumbnail and description.</p>
<h3><a href="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebook3.jpg" rel="lightbox[1167]"><img class="aligncenter size-full wp-image-1280" style="border: 1px solid black;" title="Post to Facebook with Thumbnail and Description" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/facebook3.jpg" alt="Post to Facebook with Thumbnail and Description" width="679" height="120" /></a></h3>
<p><span> </span></p>
<h2>Shortened URLs with Bit.ly</h2>
<p>Bit.ly&#8217;s API makes it easy to dynamically create shortened URLs. A big advantage of this is that you can make use Bit.ly&#8217;s click tracking.</p>
<p style="text-align: center;"><a href="http://www.rtraction.com/blog/wp-content/uploads/2009/12/bitly1.jpg" rel="lightbox[1167]"><img class="aligncenter size-full wp-image-1285" style="border: 1px solid black;" title="bit.ly click tracking" src="http://www.rtraction.com/blog/wp-content/uploads/2009/12/bitly1.jpg" alt="bit.ly click tracking" width="679" height="120" /></a></p>
<p style="text-align: center;">
<p>You can learn how to <a href="http://code.google.com/p/bitly-api/wiki/ApiDocumentation" target="_blank">use the Bit.ly API on your own</a>, or use an existing library. There is a <a href="http://sites.google.com/site/bitlyapp/" target="_blank">DLL file for .NET projects to use Bit.ly</a>. This is untested by us, but the <a href="http://www.hashbangcode.com/blog/php-class-to-interact-with-bit-ly-api-1315.html" target="_blank">Hashbangcode Bit.ly PHP Class</a> looks like a promising PHP solution. Let us know in the comments if you have tried this library!</p>
<p>If you have any other tips for creating share links, let us know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rtraction.com/blog/devit/add-sharing-to-your-webapps.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Crystal Reports Images not showing up</title>
		<link>http://www.rtraction.com/blog/devit/crystal-reports-images-not-showing-up.html</link>
		<comments>http://www.rtraction.com/blog/devit/crystal-reports-images-not-showing-up.html#comments</comments>
		<pubDate>Thu, 24 Sep 2009 18:49:43 +0000</pubDate>
		<dc:creator>David Millar</dc:creator>
				<category><![CDATA[Devit!]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[crystal reports]]></category>
		<category><![CDATA[Crystal Reports Image Handler]]></category>
		<category><![CDATA[handler]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[windows server 2003]]></category>

		<guid isPermaLink="false">http://www.rtraction.com/blog/?p=500</guid>
		<description><![CDATA[When deploying a .NET web application with Crystal Reports you will need to install the appropriate crystal reports library on the server to use any reports you&#8217;ve built.
I recently ran into an issue where Crystal Reports Images (images in a report) would not show up on a new Windows 2003 Server.  After extensive web research [...]]]></description>
			<content:encoded><![CDATA[<p>When deploying a .NET web application with Crystal Reports you will need to install the appropriate crystal reports library on the server to use any reports you&#8217;ve built.</p>
<p>I recently ran into an issue where Crystal Reports Images (images in a report) would not show up on a new Windows 2003 Server.  After extensive web research with no solution in sight I decided to try to solve the problem on my own.</p>
<blockquote><p>Note:  If you&#8217;re having problems with the images in the header bar (BusinessObjects toolbar) then please see this site below:<br />
- <a title="Issues and Fixes" href="http://www.gutgames.com/post/Crystal-Reports2c-issues2c-and-fixes.aspx" target="_blank">http://www.gutgames.com/post/Crystal-Reports2c-issues2c-and-fixes.aspx</a><br />
-  or simply google &#8220;toolbar images for crystal reports not showing up&#8221;</p></blockquote>
<p>To resolve my error I went into the Web Server(IIS) manager and performed the following steps:</p>
<p><img class="size-full wp-image-502" title="handler" src="http://www.rtraction.com/blog/wp-content/uploads/2009/09/handler.png" alt="Image showing the configuration variables entered into new Handler" width="219" height="182" align="right" />1) Clicked on &#8216;My Website&#8217; where I was using crystal reports<br />
2) Clicked on &#8216;Handler Mappings&#8217;<br />
3) On the right side under &#8216;Actions&#8217; I selected &#8216;Add Managed Handler&#8217;<br />
4) Request Path: CrystalImageHandler.aspx<br />
5) Type: CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions&#8230;&#8230;.<br />
6) Crystal Reports Image Handler<br />
7) Press OK<br />
<strong>Success!</strong></p>
<p><strong><br />
</strong></p>
<p>I was able to track down this issue by looking at the URL for non-working images.  All pointed to the following:<br />
http://www.MySite/CrystalImageHandler.aspx?*****useless info******</p>
<p>As you can see, the system is trying to access a handler to read out images specified in the report.</p>
<p>I hope this solution can save you hours of potentially wasted time and frustration.</p>
<hr /><img style="margin-right: 5px; margin-bottom: 5px;" title="Millar Golfing" src="http://www.rtraction.com/blog/wp-content/uploads/2009/09/millar.jpg" alt="Millar Golfing" width="91" height="122" align="left" /><a title="David Millar's Profile" href="http://www.rtraction.com/about-us/team-bios.htm#millar"><strong>David Millar</strong></a>, <em>Lead Developer</em><br />
<span style="font-family: Trebuchet MS,Georgia,Verdana,Sans-Serif; font-size: 12px;">Millar, as he is known around the office, is a rock-solid, workhorse coder. If anyone really understands what a chunk of code is doing it&#8217;s him. Family, friends, sports, and his wife are the most important things in life to him. He plays sports weekly and golf in the summer when he&#8217;s not busy hanging out with friends and family. Recently he got married to his wife Kate in a beautiful ceremony surrounded by friends and family on a perfect summer day. A humanitarian at heart, his positive demeanour is rattled most when &#8220;society makes decisions without considering more relevant information from the present&#8221;, and people &#8220;make self indulgent decisions that hurt society and everyone else&#8221;.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rtraction.com/blog/devit/crystal-reports-images-not-showing-up.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

