<?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>DevtheWeb.NET &#187; paypal</title>
	<atom:link href="http://www.devtheweb.net/blog/tag/paypal/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devtheweb.net/blog</link>
	<description></description>
	<lastBuildDate>Tue, 06 Dec 2011 19:25:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Integrate PayPal Donate Button into ASP.NET Page</title>
		<link>http://www.devtheweb.net/blog/2010/01/21/how-to-integrate-paypal-donate-button-into-asp-net-page/</link>
		<comments>http://www.devtheweb.net/blog/2010/01/21/how-to-integrate-paypal-donate-button-into-asp-net-page/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:48:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[paypal]]></category>

		<guid isPermaLink="false">http://www.devtheweb.net/blog/?p=680</guid>
		<description><![CDATA[I&#8217;ve recently decided to add PayPal Donate Button in the current site. The generated code for the donate button was: &#60;form action=&#8221;https://www.paypal.com/cgi-bin/webscr&#8221; method=&#8221;post&#8221;&#62; &#60;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_s-xclick&#8221; /&#62; &#60;input type=&#8221;hidden&#8221; name=&#8221;hosted_button_id&#8221; value=&#8221;11271506&#8243; /&#62; &#60;input type=&#8221;image&#8221; src=&#8221;https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif&#8221; border=&#8221;0&#8243; name=&#8221;submit&#8221; alt=&#8221;PayPal &#8211; The safer, easier way to pay online!&#8221; /&#62; &#60;img alt=&#8221;" border=&#8221;0&#8243; src=&#8221;https://www.paypal.com/en_US/i/scr/pixel.gif&#8221; width=&#8221;1&#8243; height=&#8221;1&#8243; /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently decided to add PayPal Donate Button in the current site. The generated code for the donate button was:</p>
<p>&lt;form action=&#8221;https://www.paypal.com/cgi-bin/webscr&#8221; method=&#8221;post&#8221;&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;cmd&#8221; value=&#8221;_s-xclick&#8221; /&gt;<br />
&lt;input type=&#8221;hidden&#8221; name=&#8221;hosted_button_id&#8221; value=&#8221;11271506&#8243; /&gt;<br />
&lt;input type=&#8221;image&#8221; src=&#8221;https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif&#8221; border=&#8221;0&#8243; name=&#8221;submit&#8221; alt=&#8221;PayPal &#8211; The safer, easier way to pay online!&#8221; /&gt;<br />
&lt;img alt=&#8221;" border=&#8221;0&#8243; src=&#8221;https://www.paypal.com/en_US/i/scr/pixel.gif&#8221; width=&#8221;1&#8243; height=&#8221;1&#8243; /&gt;<br />
&lt;/form&gt;</p>
<p>Adding the donate button code in the blog was easy (it&#8217;s wordpress), but in the entire part of the site it was a problem, because it&#8217;s written in asp.net.</p>
<p>I&#8217;ve search for many solutions but most of them are too complicated, ex. why should I add 3rd party control for a simple paypal donate button!?</p>
<p>The form above can be re-written also in HTML:</p>
<p>&lt;a id=&#8221;paypalDonate&#8221; target=&#8221;_blank&#8221; href=&#8221;https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=11271506&#8243;&gt;<br />
&lt;img border=&#8221;0&#8243; id=&#8221;payPalImage&#8221; src=&#8221;https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif&#8221; alt=&#8221;Donate to DevtheWeb.NET&#8221; /&gt;<br />
&lt;/a&gt;</p>
<div><!--adsense--></div>
<p>If you want to use to code above, all you need to do is to replace hosted_button_id&#8217;s value with your value, generated for your form by PayPal and that&#8217;s really all <img src='http://www.devtheweb.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div>
 &nbsp;
</div>
<form id="formPoll" method="post" action="http://www.devtheweb.net/polls/poll-is-it-awful-to-have-only-one-server-side-form-tag-in-asp-net-page.aspx?embed=true#vote">
<div><strong>Is it awful to have only one server-side Form tag in asp.net page?</strong></div>
<div>&nbsp;</div>
<div>
<input value="option1" id="option1" type="radio" name="poll" /><label for="option1">Yes</label></div>
<div>
<input value="option2" id="option2" type="radio" name="poll" /><label for="option2">No</label></div>
<div>
<input value="option3" id="option3" type="radio" name="poll" /><label for="option3">I don&#8217;t know</label></div>
<div>&nbsp;</div>
<div>
<input type="submit" value="VOTE" onclick="this.form.target='_blank';return true;" /></div>
<div>&nbsp;</div>
<div><a href="http://www.devtheweb.net/polls/poll-is-it-awful-to-have-only-one-server-side-form-tag-in-asp-net-page.aspx#results" target="_blank">View Results</a></div>
</form>
]]></content:encoded>
			<wfw:commentRss>http://www.devtheweb.net/blog/2010/01/21/how-to-integrate-paypal-donate-button-into-asp-net-page/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

