473,395 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

server.transfer to a different server gives me "A virtual path is expected."

Hi

I'm trying to post to Paypal to process payment

I try a server.tranfer but I get the error :
"System.ArgumentException: Invalid path for child request
'https://www.paypal.com/cgi-bin/webscr'. A virtual path is expected."

how can I post to paypal for processing ?

thank you
Nov 17 '05 #1
8 16268
Hi,

Use Response.Redirect with query string (as far as I know PayPal support
it).

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2
Server.Transfer() only lets you transfer on your current server and
application. Use Response.Redirect() if you want to go to another site...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/wwHelp
----------------------------------
Making waves on the Web
"gh0st54" <gh*****@hotmail.com> wrote in message
news:7f**************************@posting.google.c om...
Hi

I'm trying to post to Paypal to process payment

I try a server.tranfer but I get the error :
"System.ArgumentException: Invalid path for child request
'https://www.paypal.com/cgi-bin/webscr'. A virtual path is expected."

how can I post to paypal for processing ?

thank you

Nov 17 '05 #3
Thanks it works

but I would still like to know how to do it with the post procedure

I might need it later


Natty Gur <na***@dao2com.com> wrote in message news:<#k**************@TK2MSFTNGP09.phx.gbl>...
Hi,

Use Response.Redirect with query string (as far as I know PayPal support
it).

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #4
Hi,

You can add new Form without the runat=server attribute and set it
action to the PayPal page.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #5
You are right ,
I had never noticed the exact messge when trying to put multiple form
:
it says :

A page can have only one SERVER-SIDE form tag

now if my form is within my server side form , it will be treated by
the server side = not posting .

is there a way to have your cake and eat it too .

can a form be inside a server-side form and still post to it's action
param ?
I know I'm asking weird stuff but its a nice exercice :)

thank you
Natty Gur <na***@dao2com.com> wrote in message news:<Oq*************@tk2msftngp13.phx.gbl>...
Hi,

You can add new Form without the runat=server attribute and set it
action to the PayPal page.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #6
You are right ,
I had never noticed the exact messge when trying to put multiple form
:
it says :

A page can have only one SERVER-SIDE form tag

now if my form is within my server side form , it will be treated by
the server side = not posting .

is there a way to have your cake and eat it too .

can a form be inside a server-side form and still post to it's action
param ?
I know I'm asking weird stuff but its a nice exercice :)

thank you
Natty Gur <na***@dao2com.com> wrote in message news:<Oq*************@tk2msftngp13.phx.gbl>...
Hi,

You can add new Form without the runat=server attribute and set it
action to the PayPal page.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 17 '05 #7
I dont think so.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #8
I dont think so.

Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: python | last post by:
Hi- I'm getting a "DeprecationWarning: integer argument expected, got float" warning with mx.DateTime and I can't figure out why. Can anyone help me out? This code: import mx.DateTime
2
by: Abdul Azeem | last post by:
Hi! Any one has Idea, How to use Server.Transfer and Server.Execute, When I tried to use these methods I got an eror: Server object error 'ASP 0230 : 80004005' Server.Transfer Error...
2
by: Serdge Kooleman | last post by:
hi i'm trying to play sounds in my windows app. wav files are in the same folder as .exe if i'm getting path by command: ApplicationPath = Application.StartupPath; and it is look like
1
by: VB Programmer | last post by:
When I run this line: Dim sw As New System.IO.StreamWriter(strFileName) I get this error: System.UnauthorizedAccessException: Access to the path...
4
by: Tran Hong Quang | last post by:
Hi, I'm using Windows 2000, English version, Microsoft Visual Studio.Net 2003. I compile a project developed for Japanese client, on which there are some Japanese messages. I have error "End of...
2
by: JIM.H. | last post by:
I have an asp.net solution and one asp.net and a few asp projects included to this solution. I try to redirect from my asp.net page to asp page with Server.Transfer, I get the following error: ...
0
by: johnlim20088 | last post by:
Hi, Hi, someone can help me? I have a export.aspx page with the following url in my code url = http://localhost/exportfolder/log.csv when i use Response.Redirect(url)
2
by: Fernando Rodriguez | last post by:
I created an HttpHandler for rewritting URLs. It simply checks if the requested page is on a list of "special" pages (that do not exist) and if it is on the list then it will transfer to an ASPX...
2
by: jahanas | last post by:
Private Sub txtBox1.txtLife_Enter(ByVal frmQuote) Handles txtLife Me.txtQuote.Text = "I like life, it's something to do." End Sub Private Sub txtBox2.txtFuture_Enter(ByVal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.