Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: .Net Form Posting

date posted 25th February 2008 17:38

On Monday, February 25, 2008 6:28 PM, Phillip Healey wrote:
>
>>Can you put the paypal buttons outside the main form? Do they need to be
>>alongside other input controls or could you keep the main form small to
>>store the viewstate and whatever other transient data and then put the
>>buttons outside of that?
>
> Not really. Im storing the cart items as cookies then retrieving them as a
> page displaying the cart contents. Then adding information such as
> delivery
> details. So this all need verification when the submit button is clicked.
>
> If this delivery info passes verification, i want to submit the contents
> of
> the cart (cookies) as a form to Paypal, using a form which allows you to
> add
> multiple items and display them as a full cart inventory on the paypal
> invoicing page.
>
> Thus there is a cross-over between my code and the Paypal code / forms.
>
> So it would seem i need to programmatically add the Paypal form.
> Somehow!????????
>
> If i didn't need verification of delivery details on the submit button
> then
> i could end the .Net form before the button, but unfortunately that isn't
> the case.
>
> To further hinder this solution im using a MasterPage too.
>
> So i need to be able to build and then action, a form programmatically, i
> guess.
>
> Im really surprised there aren't any real solutions to this to be found
> via
> that Google website thing. ;-)
>
> HELP HELP HELP!!!
>

I had a problem doing something similar; cleaning a form to remove unwanted
items that asp.net kindly drops in there.

I noticed that .net didn't seem to have a HTML form data collection object,
in terms of something that can be posted between pages; the HtmlForm being
something else. However the form could be sent to another page (or I guess
to a method within the same page) and the parameter collected there as a
NameValueCollection and you can iterate the NameValueCollection to copy the
items you want to a different NameValueCollection. You just can't remove
items because they are read only. Exactly what paypal will make of a
NameValueCollection sent to it in lieu of a form I don't know.

Problem with that is at the end of the day you have a NameValueCollection
left and this is NOT the same as a Form collection; it just has the same
data in it. A HTML form object collection is derived from
NameValueCollection.

But, doesn't .NET 3.5 now allow one to use several forms on a page?

Also, if you send one of those huge asp.net forms why should paypal mind,
provided that you send all the data that paypal wants? I can't see why there
should be a problem with asp.net sending too much data.

The best place to ask these questions is http://forums.asp.net/ You problem
is quite specific but I'm pretty sure there'll be someone there who has
solved the exact same problem.





Messages by Day
February 29th 2008
February 28th 2008
February 27th 2008
February 26th 2008
February 25th 2008
February 24th 2008
February 23rd 2008
February 22nd 2008
February 21st 2008
February 20th 2008
February 19th 2008
February 18th 2008
February 17th 2008
February 16th 2008
February 15th 2008
February 14th 2008
February 13th 2008
February 12th 2008
February 11th 2008
February 10th 2008
February 9th 2008
February 8th 2008
February 7th 2008
February 6th 2008
February 5th 2008
February 4th 2008
February 3rd 2008
February 2nd 2008
February 1st 2008


Messages by Month
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000