Getting a simple PayPal Buy It Now button working in an ASP.net 2.0 site was trickier than I thought. Because the entirety of an ASP.net 2.0 'page' essentially becomes the content within a HTML form tag ( <form>), the PayPal Buy It Now, with it's own HTML form conflicts.
Just placing the PayPal code within a basic ASP.net page, then clicking the PayPal 'Buy Now' button would refresh the current page. I was chasing popup blocking and cross-domain issues for a few minutes before I realized the page was just posting back to itself.
Ended up using the 'IFrames' solution described at
PayPal Button (Pay Pal Button ) SOLUTIONS!!!! - ASP.NET Forums
just cause I could bang it out in about an hour tonight. Maybe will look at the devloper kits in the future.
Also added in the hyperlink as a backup (if a customer does block pop-ups, or some other strict security setting in the future)
Also, the post to paypal didn't work when debugging locally. The page would open, but none of the post parameters were going across. Figured it was a local browser setting, and it worked when running from the live host, so I didn't dig any further on that one.
Sunday, December 6, 2009
Subscribe to:
Post Comments (Atom)
Labels
SQL Server
(15)
Project Management
(5)
Dot Net Framework
(4)
SSIS
(4)
Maxims
(3)
Virtual PC
(3)
WMI
(3)
ASP.net
(2)
Data Warehouse
(2)
Database
(2)
Development
(2)
InfoPath
(2)
Oracle
(2)
PMI
(2)
PowerShell
(2)
SQL Server Integration Services
(2)
Software
(2)
Source Code Control
(2)
web design
(2)
Active Directory
(1)
Business Analysis
(1)
C#
(1)
CSS
(1)
Career
(1)
Click-Once
(1)
Flash
(1)
FoxPro
(1)
HTML
(1)
IT Support
(1)
JavaScript
(1)
LAMP
(1)
MCP
(1)
MCTS
(1)
MOSS
(1)
Microsoft Access
(1)
Microsoft Money
(1)
ODBC
(1)
Office 2007
(1)
OneNote
(1)
Open Source
(1)
PMP
(1)
Reporting
(1)
SQL Server 2008 R2; SQL Server
(1)
SQL Server Express
(1)
SQL Server Reporting Services
(1)
SSRS
(1)
SharePoint
(1)
SharePoint Server
(1)
SkyDrive
(1)
T-SQL
(1)
UML
(1)
VB.net
(1)
VBScript
(1)
Visual Studio
(1)
WMI; PowerShell
(1)
Web
(1)
Word 2000
(1)
Word 2003
(1)
mashup
(1)
No comments:
Post a Comment