catalyst2 community forums  

Go Back   catalyst2 community forums > catalyst2 Community > General Chit-Chat

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 12-11-2004, 04:27 PM   #1 (permalink)
Registered User
 
Join Date: Jul 2004
Location: Cheltenham, UK
Posts: 14
Send a message via MSN to steve1000
Worldpay .aspx

Has anyone managed to setup World pay payment processing with asp.net (vb.net).

I have search many sites & have found no answer. As far as I can see .aspx pages cannot post information to other pages only too itself.

When using Worldpay Select Junior world pay requires you to post hidden fields to their secure server (should be very simple) but flipping microsoft have messed up as far as I can see not allowing this. I can obviously post a html page no problem but as the information is not dynamic (ie I can't have a basket on this page) then it's not much use.

Any Ideas?

Thanks
Steve (stressed)
steve1000 is offline   Reply With Quote
Old 12-11-2004, 04:29 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Sorry why can't you post them a dynamic page? Write all the required hidden fields to the page before you post it to World pay. Or is it not that simple and I'm missing something?!?
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 04:35 PM   #3 (permalink)
Registered User
 
Join Date: Jul 2004
Location: Cheltenham, UK
Posts: 14
Send a message via MSN to steve1000
If only!

I wish I could, as soon as you set the hidden fields to 'run at server' which you need to do to set their dynamic values the the post will not post the value to the destination it will only post to itself.

I'm not sure if the older .asp pages can do it, I was wondering if anyone has found a solution.

Steve
steve1000 is offline   Reply With Quote
Old 12-11-2004, 04:37 PM   #4 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
I think thats quite strange, I've never noticed that my self.

How about outputting the HTML code for the hidden values onto the page?

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 04:51 PM   #5 (permalink)
Registered User
 
Join Date: Jul 2004
Location: Cheltenham, UK
Posts: 14
Send a message via MSN to steve1000
I don't quite follow.

If you have a look at the link it will explain a little, it seems to be a common problem where .aspx pages cannot do cross page posting.

http://weblogs.asp.net/pwilson/archi.../29/34597.aspx

thanks
Steve
steve1000 is offline   Reply With Quote
Old 12-11-2004, 05:42 PM   #6 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Thats only applies for asp.net web forms. If you implement it as a HTML form there will not be a problem! Why use a sledge hammer for what a spoon can do?

Thats made me hungary
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 06:15 PM   #7 (permalink)
Software / Web Developer
 
Join Date: Jul 2004
Location: Nottinghamshire, England
Posts: 158
Send a message via MSN to DaveLegg
What you could do, and I do on many sites, is to put a literal control where you want the data and have the server side code output the raw html to that literal control.
__________________
Dave Legg
www.dlpwd.co.uk
DaveLegg is offline   Reply With Quote
Old 12-11-2004, 06:17 PM   #8 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Thats what I was thinking, only Dave managed to explain it better!
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 06:22 PM   #9 (permalink)
Software / Web Developer
 
Join Date: Jul 2004
Location: Nottinghamshire, England
Posts: 158
Send a message via MSN to DaveLegg
That's the way I do any dynamic site these days, saves rendering time for server controls, also allows a great amount of flexibility.
__________________
Dave Legg
www.dlpwd.co.uk
DaveLegg is offline   Reply With Quote
Old 12-11-2004, 06:26 PM   #10 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
But it does you mean you lose out on some of asp.net's nice posh controls, admitably they are all reproduceable but it makes it easier. Bring on asp.net2, XHTML 1.1 valid controls! anywhos
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 06:38 PM   #11 (permalink)
Software / Web Developer
 
Join Date: Jul 2004
Location: Nottinghamshire, England
Posts: 158
Send a message via MSN to DaveLegg
Nice posh controls? like what?

Anyway I find it easier to do repetition of areas easier by writing the pure HTML, see my forums, powered by XML and StringBuilder!!

I may move to webcontrols when asp.net 2 comes out.
One question, are the forms it generates XHTML valid? Whenever I try to use a server side form in ASP.NET it adds a hidden viewstate value which for some reason is invalid XHTML.
__________________
Dave Legg
www.dlpwd.co.uk
DaveLegg is offline   Reply With Quote
Old 12-11-2004, 06:42 PM   #12 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
Yup, from my understanding the rendered page will be HTML4 valid, with settings to throw into your web.config to other standards, inc XHTML1.1.
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 12-11-2004, 06:45 PM   #13 (permalink)
Software / Web Developer
 
Join Date: Jul 2004
Location: Nottinghamshire, England
Posts: 158
Send a message via MSN to DaveLegg
Cool.
I might take a look at it soon when I get the next version of my server out, as that will support .net 2.0
__________________
Dave Legg
www.dlpwd.co.uk
DaveLegg is offline   Reply With Quote
Old 12-11-2004, 08:44 PM   #14 (permalink)
Registered User
 
Join Date: Jul 2004
Location: Cheltenham, UK
Posts: 14
Send a message via MSN to steve1000
Html

Jason,

Going back to your message @ 5:42

I need to use ASP.net web form because thats what holds my values (basket cost etc). Unless you know of away to pass these values to a html form.

Steve
steve1000 is offline   Reply With Quote
Old 12-11-2004, 08:54 PM   #15 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
As Dave said, use a literal control and dynamically output the html code for the hidden fields into the control.

Jas
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.