Ask questions via twitter! Message any question to @answers on twitter. We'll publish the question and send you a reply each time there's a new answer.
Next Question

Answered Question

 
M$3 January 15, 2009 10:38 PM

How can I integrate a PayPal hosted shopping cart with my own site built in ASP.NET 2.0?

I built a simple web site for my small business in ASP.NET 2.0 using Visual Studio 2005, http://www.olisproducts.com and I'd like to integrate a simple PayPal shopping cart like these girls did (http://yummy-dummy.com/products.htm) but I'm having trouble because it seems that the PayPal code and the use of Master Pages in Visual Studio 2005 do not mix well. Something to do with the limitation of having only one tag at a time. The Master Page has a tag, and the PayPal code has a tag. Because of this, I get errors. That's about all I know.

I'm willing to accept a "here's a workaround" type answer if that's what it takes, but I'd like to have as solid of a ship as possible, of course. If there's a way to do it cleanly, I'd much rather do it that way.

Also (bonus points): for such a simple site as mine, is there any better software I could be using? Using Visual Studio 2005 seems a bit overkill for a site like mine, because it's not a web application. I had considered something like ZenCart but found it a pain to configure. Then I had considered Dreamweaver, but I don't know if it uses the Master Page concept that ASP.NET does, which makes it really convenient for me to create lots of pages with a consistent look and feel.
Interesting Question?  Yes (0)   No (0)   
RSS
 
 

Best Answer  Chosen by Asker

 
January 16, 2009 02:48 AM
Jeremy Schneider came up with a brilliant solution to this problem that consists of a custom HtmlForm class that can have the form tag rendering toggled on and off.

The class is called GhostForm and has a property, RenderFormTag. When RenderFormTag is set to false, it doesn't render the opening or closing tags, but does render all of the contents. Reference the custom GhostForm class and in the code-behind of the form on which you are placing the button, place the following in the Page_Load to disable the master page form tag:

public partial class Products : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
GhostForm mainForm = new GhostForm();
mainForm.RenderFormTag = false;
.....
}
// Send your data to PayPal :-)
.....
}
Source(s):
http://jerschneid.blogspot.com/2007/03/hide-form-tag-but-leave-content.html



Helpful Answer?  (0)   (0)    Tip cyberangel for this answer
Permalink | Report
   Reply  
 
 

Other Answers (1)

Sort By
 
January 16, 2009 06:27 AM
The cart at http://www.fatfreecart.com/ is as simple as you can possibly get. Just change the values to what you need and drop it in. it is made by the guys at http://www.e-junkie.com/ which would be the next step if you want a more managed cart, downloads, etc, but it is still just a drop-in solution. I use it at http://c-sharpener.com and it couldn't be easier to set up and requires absolutely no workarounds.

As for your second question, VS is a great program, but it can be a bit much some times. Microsoft offers a free Visual Web Developer Express which had it's newest version just released last year and will have more than all the features you need (you will recognize a lot from VS) including masterpage integration. Check it out: www.microsoft.com/express/vwd/

Good Luck!
Source(s):
http://www.fatfreecart.com/
http://www.e-junkie.com/
www.microsoft.com/express/vwd/


Helpful Answer?  (0)   (0)    Tip naspinski for this answer
Permalink | Report
   Reply  
 
 
 
January 16, 2009 12:20 PM
I can personally recommend e-junkie.

While I prefer code that is hosted on my server rather than rely on a 3rd party, I sometimes use e-junkie as a quick drop-in when I need to sell something very fast on a new page / site.

Report
 
 

Answer this Question

How tips and payments work

This question has already been resolved. You may add an answer to it but you will not be eligible to win best answer or any associated tips.

Ask a Question


140 characters left
Top of Page
Buy Mahalo Dollars with Credit Card or PayPal

Top Members

This Week All Time
  • buddawiggi
    buddawiggi
    2nd Degree Black Belt
    24886 Points
    M$691.47 Earned
  • cfinke
    cfinke
    2nd Degree Black Belt
    22928 Points
    M$29.75 Earned
  • edwardclin...
    edwardclin...
    Green Belt with a Purple Tip
    1868 Points
    M$48.64 Earned
   See All
 

Most Popular Tags

mahalo(1398)
iphone(449)
music(435)
google(324)
food(290)
beer(267)
online(266)
money(246)
apple(239)
movies(235)
aotd(233)
video(200)
health(197)
free(190)
dog(188)
   See All
 

Categories

Welcome New Members


 
 
Mahalo Dollars are the currency of Mahalo Answers.

Each Mahalo Dollar costs $1.

Once you earn more than 40 Mahalo Dollars, you can request to be paid via PayPal. Each Mahalo Dollar is currently worth $0.75 when paid out via PayPal. Learn More

 
 

Please log in to use this function.