Gary Davis' Blog

DotNET/PayPal Development and other Techie Stuff
posts - 46, comments - 170, trackbacks - 0


Blog posts related to programming
How I Ported a Windows Phone 7 App to WP8

I completed the porting of my Tivo Net Remote app last week from WP7 to WP8 using some ideas from the Nokia Porting Guide. It was published yesterday. I opened the source code solution using the new SDK and verified it compiled. There were minor changes I wanted to get in. One was to remove the Performance Progress Bar from the toolkit and use the native Progress Bar which was fixed to be like the toolkit version. I then created a new project in the solution for the WP8 version. I used the copy-as-link on all the source...

posted @ Thursday, January 10, 2013 4:14 PM | Feedback (1) | Filed Under [ Programming WP7 WP8 ]

How to Enable jQuery Intellisense in Your MVC 3 Razor Code

You probably include your <script> to pull in the jQuery JavaScript in your layout.cshtml (master page in Razor), perhaps something like this: <script src="" type="text/javascript"></script>   But your code pages that use jQuery do not show Intellisense. To enable Intellisense, add this to the top of the pages so Visual Studio has a reference to the vsdoc which is hosted by the Microsoft CDN: @if (false) {<script src="" type="text/javascript" />}   The if statement will prevent the script tag from being emitted to the browser since it is only needed for Visual Studio development. It is not necessary to specify the path to the vsdoc file...

posted @ Monday, May 30, 2011 12:00 AM | Feedback (1) | Filed Under [ Programming ]

Log Your Website Visitor Out of Facebook

One of my webs lets the user authenticate using the Facebook OAuth 2.0 Graph protocol. When the user clicks the Logout button, a call is made (Http redirect) to Facebook to have it log the user off Facebook and my site and then it returns to my site to display my page with the button now showing Login instead of Logout. The user never sees any Facebook page during the logout. The way this works is to pass a parameter to Facebook that indicates the url to return to when it is done. A few weeks ago, this stopped working. Instead...

posted @ Thursday, May 26, 2011 12:00 AM | Feedback (0) | Filed Under [ Programming ]

How to Suppress Google AdSense (Syndication) for SSL Https Pages

Google AdSense is not supported for https (see here). If you attempt to use it on an SSL page, you will see this warning in IE8. The user would have to click No to allow the request (for a .js file in this case) to complete. Answering Yes will block it (the wording seems backwards from what you’d expect). Some postings I saw said to change the .js url in the script to use but while this will work for this one .js file, the script then attempts to pull in other .js files using http so you still get...

posted @ Friday, September 3, 2010 12:00 AM | Feedback (2) | Filed Under [ Programming ]

How I Solved the VS2010 Error: "Unable to start debugging…"

I received error message "Unable to start debugging on the web server" in Visual Studio 2010. I clicked the Help button and followed the related suggestions without success. This happens with a newly created local ASP.Net project when modified to use IIS instead of Cassini (which works for debugging). It immediately pops up the error. Nothing shows up in the Event Viewer. This also happens with VS2008. Debugging used to work. I am able to attach to the w3wp process to debug. It works but is not as convenient as F5. I posted the problem at Experts-Exchange and StackOverflow. The answer...

posted @ Friday, August 6, 2010 12:00 AM | Feedback (8) | Filed Under [ Programming ]

How to Integrate PayPal Website Payments Standard with ASP.Net

Yesterday was the South Florida Code Camp 2010 in Miramar (that’s between Miami and Ft. Lauderdale). I gave a presentation on integrating PayPal Website Payments Standard with ASP.Net C#. I included a demo web application showing four different options to program the application though from the buyer’s point of view, all four examples looked and acted the same.   PayPal standard is the familiar option that displays PayPal buy-buttons to the buyer and when clicked, control is transferred to PayPal for the buyer to complete the payment and hopefully return to the website. Each Buy Now button is a <form> with some hidden...

posted @ Sunday, February 28, 2010 12:00 AM | Feedback (3) | Filed Under [ Programming ]

How to create dynamic Encrypted Website Payments (EWP) PayPal buttons

If you want to sell something on your website, perhaps something like a personalized kid's storybook, you can add a PayPal buy-button that will send the user to PayPal to make a payment to your PayPal account. You will get an email and then you can create and send the book to the buyer. The Html code that makes up the button (created manually or from the PayPal button factory) contains things like your PayPal account email, the item description and price and perhaps a few other parameters. However, someone knowledgeable could view the source of your page or save the...

posted @ Saturday, August 29, 2009 12:00 AM | Feedback (0) | Filed Under [ Programming ]

Powered by:
Powered By Subtext Powered By ASP.NET